diff --git a/nixos/programs/nh.nix b/nixos/programs/nh.nix index 137e3f0..fcd5d7d 100644 --- a/nixos/programs/nh.nix +++ b/nixos/programs/nh.nix @@ -4,6 +4,8 @@ # Cleanup stays on nix.gc (see system/nix.nix) to avoid two GC timers. programs.nh = { enable = true; + clean.enable = true; + clean.extraArgs = "--keep-since 4d --keep 3"; flake = "/home/prouk/flake"; }; } diff --git a/nixos/system/nix.nix b/nixos/system/nix.nix index d17247d..3f1464f 100644 --- a/nixos/system/nix.nix +++ b/nixos/system/nix.nix @@ -20,11 +20,6 @@ nixpkgs.config.allowUnfree = true; # Housekeeping - nix.gc = { - automatic = true; - dates = "weekly"; - options = "--delete-older-than 14d"; - }; nix.optimise.automatic = true; # Run unpatched dynamic binaries.