diff --git a/modules/system/auto-gc.nix b/modules/system/auto-gc.nix index 8a420f0..819dff3 100644 --- a/modules/system/auto-gc.nix +++ b/modules/system/auto-gc.nix @@ -6,10 +6,12 @@ options.myConfig.auto-gc.enable = lib.mkEnableOption ""; config = lib.mkIf config.myConfig.auto-gc.enable { - nix.gc = { - automatic = true; + myConfig.nix-helper.enable = true; + + nh.clean = { + enable = true; dates = "weekly"; - options = "--delete-older-than 7d"; + extraArgs = "--keep-since 7d --keep 10"; }; }; }