Limit number of saved generations to 10

This commit is contained in:
SebastianStork 2024-03-18 15:17:36 +01:00
parent d5729dc447
commit ad3f4782dd

View file

@ -6,10 +6,12 @@
options.myConfig.auto-gc.enable = lib.mkEnableOption ""; options.myConfig.auto-gc.enable = lib.mkEnableOption "";
config = lib.mkIf config.myConfig.auto-gc.enable { config = lib.mkIf config.myConfig.auto-gc.enable {
nix.gc = { myConfig.nix-helper.enable = true;
automatic = true;
nh.clean = {
enable = true;
dates = "weekly"; dates = "weekly";
options = "--delete-older-than 7d"; extraArgs = "--keep-since 7d --keep 10";
}; };
}; };
} }