feat: Update garbage collection options

Adjust default garbage collection intervals and retention periods. Set default GC to run weekly and retain 14 days on nixos module and to run daily and retain 7 days on the 64-linux module.
This commit is contained in:
Harald Hoyer 2024-06-25 10:09:51 +02:00
parent 58dd6f0e63
commit 51feb2539a
2 changed files with 8 additions and 2 deletions

View file

@ -83,8 +83,8 @@ in
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
dates = lib.mkDefault "weekly";
options = lib.mkDefault "--delete-older-than 14d";
};
# flake-utils-plus

View file

@ -35,6 +35,12 @@
flake = lib.mkForce "git+file:///var/lib/gitea/repositories/harald/nixcfg.git#mx";
};
gc = {
automatic = true;
dates = lib.mkDefault "daily";
options = lib.mkDefault "--delete-older-than 7d";
};
programs.git.config.safe.directory = "/var/lib/gitea/repositories/harald/nixcfg.git";
environment.systemPackages = with pkgs; [