diff --git a/modules/cli/nix.nix b/modules/cli/nix.nix index e46f771..0769b1c 100644 --- a/modules/cli/nix.nix +++ b/modules/cli/nix.nix @@ -2,4 +2,9 @@ { nix.package = pkgs.nixFlakes; + nix.gc = { + automatic = true; + options = "--max-freed $((32 * 1024**3)) --delete-older-than 14d"; + }; + nix.optimise.automatic = true; }