diff --git a/configuration.nix b/configuration.nix index d9098e3..21d8451 100644 --- a/configuration.nix +++ b/configuration.nix @@ -62,7 +62,10 @@ with pkgs; # Run Nix garbage collector, while avoiding recompilation and enable flakes nix = { - settings.auto-optimise-store = true; + settings = { + auto-optimise-store = true; + experimental-features = [ "nix-command" "flakes" ]; + }; gc = { automatic = true; options = "--delete-older-than 14d"; @@ -72,9 +75,7 @@ with pkgs; keep-outputs = true keep-derivations = true gc-keep-outputs = true - experimental-features = nix-command flakes ''; - package = nixFlakes; }; # Use same version of nixpkgs for nix-shell