From 74e06ac6d00c2b52deab632ec826fb671544699e Mon Sep 17 00:00:00 2001 From: Yureka Date: Wed, 24 Jul 2024 09:35:04 +0200 Subject: [PATCH] hydra gc every 20h metrics analysis has showed that this is unlikely to fill up the builders --- services/baremetal-builder/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/services/baremetal-builder/default.nix b/services/baremetal-builder/default.nix index 832ef9d..581a0e8 100644 --- a/services/baremetal-builder/default.nix +++ b/services/baremetal-builder/default.nix @@ -150,7 +150,11 @@ in script = "exec ${config.nix.package.out}/bin/nix-store --gc --store /mnt"; serviceConfig.Type = "oneshot"; serviceConfig.User = "builder"; - startAt = "*-*-* 00/8:00:00"; + }; + systemd.timers.hydra-gc = { + timerConfig.OnStartupSec = "4h"; + timerConfig.OnUnitActiveSec = "20h"; + wantedBy = [ "timers.target" ]; }; systemd.timers.hydra-gc.timerConfig.Persistent = true;