nix: Slow down gc on urithiru

This commit is contained in:
Charlotte Van Petegem 2023-07-02 14:41:00 +02:00
parent 7e38af6214
commit 6b7e8c4ab3
No known key found for this signature in database
GPG key ID: 019E764B7184435A
2 changed files with 9 additions and 2 deletions

View file

@ -21,6 +21,10 @@ in
default = true;
example = false;
};
slowGc = lib.mkOption {
default = false;
example = true;
};
unfreePackages = lib.mkOption {
default = [ ];
example = [ "teams" ];
@ -55,7 +59,7 @@ in
package = pkgs.nixVersions.nix_2_13;
gc = {
automatic = true;
dates = "hourly";
dates = if config.chvp.base.nix.slowGc then "daily" else "hourly";
options = "--delete-older-than 7d";
};
settings = {