diff --git a/ops/machines/nevsky/default.nix b/ops/machines/nevsky/default.nix index 1379eaa62..5be3b809d 100644 --- a/ops/machines/nevsky/default.nix +++ b/ops/machines/nevsky/default.nix @@ -235,6 +235,15 @@ in services.depot.builderball.enable = true; + # Automatically collect garbage from the Nix store. + services.depot.automatic-gc = { + enable = true; + interval = "1 hour"; + diskThreshold = 200; # GiB + maxFreed = 420; # GiB + preserveGenerations = "60d"; + }; + # Run a handful of Buildkite agents to support parallel builds. services.depot.buildkite = { enable = true;