nix: Slow down gc on urithiru
This commit is contained in:
parent
7e38af6214
commit
6b7e8c4ab3
2 changed files with 9 additions and 2 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue