modules/nix-config: tweak GC

This commit is contained in:
Max Headroom 2022-02-21 20:08:53 +01:00
parent 8e0c4029e0
commit 5ccc23d263

View file

@ -47,12 +47,14 @@ in {
flake-registry = ${
pkgs.writeText "null-registry.json" ''{"flakes":[],"version":2}''
}
max-free = ${toString (8 * 1024*1024*1024)}
min-free = ${toString (4 * 1024*1024*1024)}
'';
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
options = "--delete-older-than 5d --max-freed 16G";
};
distributedBuilds = true;