about summary refs log tree commit diff
path: root/nixos/modules/nix.nix
diff options
context:
space:
mode:
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";