about summary refs log tree commit diff
path: root/nixos/modules/nix.nix
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2022-01-31 09:22:30 +0900
committersefidel <contact@sefidel.net>2022-01-31 09:22:30 +0900
commit120397f4539239519d100d507dd5a51cc6be0330 (patch)
tree2c66ac8caece625b027c554910fe83ac8fda8e07 /nixos/modules/nix.nix
parent74c5c6f717c47f92a85b46689913bb6889a9c42e (diff)
downloadnixrc-120397f4539239519d100d507dd5a51cc6be0330.tar.gz
nixrc-120397f4539239519d100d507dd5a51cc6be0330.zip
nixos: use new nix options
Diffstat (limited to 'nixos/modules/nix.nix')
-rw-r--r--nixos/modules/nix.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/nix.nix b/nixos/modules/nix.nix
index 04fafac..1f61d45 100644
--- a/nixos/modules/nix.nix
+++ b/nixos/modules/nix.nix
@@ -25,7 +25,7 @@ in
   config = lib.mkMerge [
     (lib.mkIf (config.nix.experimentalFeatures != "") { nix.extraOptions = "experimental-features = ${config.nix.experimentalFeatures}"; })
     (lib.mkIf (allowed != [ ]) { nixpkgs.config.allowUnfreePredicate = (pkg: __elem (lib.getName pkg) allowed); })
-    { nix.autoOptimiseStore = lib.mkDefault true; }
+    { nix.settings.auto-optimise-store = lib.mkDefault true; }
     {
       nix.gc.automatic = lib.mkDefault true;
       nix.gc.options = lib.mkDefault "--delete-older-than 10d";