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.

Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
This commit is contained in:
Harald Hoyer 2024-06-25 10:09:51 +02:00
parent 58dd6f0e63
commit 20cefaf839
2 changed files with 7 additions and 2 deletions

View file

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

View file

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