diff --git a/modules/nix-config/default.nix b/modules/nix-config/default.nix index 3823e9e..480eed2 100644 --- a/modules/nix-config/default.nix +++ b/modules/nix-config/default.nix @@ -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;