diff options
author | Vincent Ambo <tazjin@tvl.su> | 2024-04-18T08·35+0300 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2024-04-18T08·50+0000 |
commit | 019b6d260e15ca13848e9321e4b131ac533d69ad (patch) | |
tree | bafd71095ff2275c1829a9d360d1aa8b164dfe2a /ops/machines | |
parent | 076b76cbdd381a77f7315e9c3d6df9c0c6ab4424 (diff) |
fix(ops/nixery-01): enable automatic GC r/7953
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>
Diffstat (limited to 'ops/machines')
-rw-r--r-- | ops/machines/nixery-01/default.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ops/machines/nixery-01/default.nix b/ops/machines/nixery-01/default.nix index c7c8fd4b5ed9..c99db214d8c2 100644 --- a/ops/machines/nixery-01/default.nix +++ b/ops/machines/nixery-01/default.nix @@ -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"; + }; } |