fix(ops/nixery-01): enable automatic GC
This relates to nixery#167. Using our GC module is much more reliable than what we were doing previously. Change-Id: I1956457812a3a847a7c8a1f4e7e91e50fad08ac0 Reviewed-on: https://cl.tvl.fyi/c/depot/+/11453 Tested-by: BuildkiteCI Autosubmit: tazjin <tazjin@tvl.su> Reviewed-by: flokli <flokli@flokli.de>
This commit is contained in:
parent
076b76cbdd
commit
019b6d260e
1 changed files with 9 additions and 0 deletions
|
@ -28,4 +28,13 @@ in
|
|||
};
|
||||
|
||||
services.depot.nixery.enable = true;
|
||||
|
||||
# Automatically collect garbage from the Nix store.
|
||||
services.depot.automatic-gc = {
|
||||
enable = true;
|
||||
interval = "1 hour";
|
||||
diskThreshold = 25; # GiB
|
||||
maxFreed = 150; # GiB
|
||||
preserveGenerations = "30d";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue