improve nix gc

This commit is contained in:
Peder Bergebakken Sundt 2023-09-09 11:58:01 +02:00
parent 29da74a2fb
commit ca14e8b573

View File

@ -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;