From 63bab9576dab5ce1a04b554efec40a29bef06525 Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Sun, 30 Jan 2022 17:00:30 -0500 Subject: [PATCH] fix(nix): move to non-deprecated settings location --- modules/devos/nix.nix | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/modules/devos/nix.nix b/modules/devos/nix.nix index 34544ff..2c5b191 100644 --- a/modules/devos/nix.nix +++ b/modules/devos/nix.nix @@ -4,20 +4,22 @@ with lib; nix = { package = pkgs.nixUnstable; - systemFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ]; + settings = { + allowed-users = [ "@wheel" ]; - autoOptimiseStore = true; + trusted-users = [ "root" "@wheel" ]; + + system-feature = [ "nixos-test" "benchmark" "big-parallel" "kvm" ]; + + auto-optimise-store = true; + + sandbox = true; + }; gc.automatic = true; optimise.automatic = true; - useSandbox = true; - - allowedUsers = [ "@wheel" ]; - - trustedUsers = [ "root" "@wheel" ]; - extraOptions = '' min-free = 536870912 keep-outputs = true