diff --git a/modules-all/automatic/nix.nix b/modules-all/automatic/nix.nix index bc4bdb9..feb18e6 100644 --- a/modules-all/automatic/nix.nix +++ b/modules-all/automatic/nix.nix @@ -6,6 +6,11 @@ package = pkgs.nixFlakes; settings = { + experimental-features = "nix-command flakes"; + keep-outputs = true; + keep-derivations = true; + min-free = (toString (1024 * 1024 * 1024) ); + max-free = (toString (5 * 1024 * 1024 * 1024) ); substituters = [ "https://cache.garnix.io" ]; @@ -13,16 +18,6 @@ "cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g=" ]; }; - # Keep freespace available, at a minimum, and enable Flakes - extraOptions = '' -experimental-features = nix-command flakes -min-free = ${toString (1024 * 1024 * 1024) } -max-free = ${toString (5 * 1024 * 1024 * 1024) } - -# Used by direnv -keep-outputs = true -keep-derivations = true -''; }; nixpkgs.config.allowUnfree = true; }