diff options
Diffstat (limited to 'ops/machines/nixery-01/default.nix')
-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"; + }; } |