improve nix gc
This commit is contained in:
parent
29da74a2fb
commit
ca14e8b573
4
base.nix
4
base.nix
|
@ -47,6 +47,10 @@
|
|||
nix.gc.automatic = true;
|
||||
nix.gc.dates = "weekly";
|
||||
nix.gc.options = "--delete-older-than 30d";
|
||||
nix.extraOptions = ''
|
||||
min-free = ${toString (1 * 1024 * 1024 * 1024)}
|
||||
max-free = ${toString (5 * 1024 * 1024 * 1024)}
|
||||
'';
|
||||
|
||||
services.thermald.enable = lib.mkIf (config.nixpkgs.system == "x86_64-linux") true;
|
||||
|
||||
|
|
Loading…
Reference in New Issue