hydra gc every 20h

metrics analysis has showed that this is unlikely to fill up the builders
This commit is contained in:
Yureka 2024-07-24 09:35:04 +02:00
parent 3ff9d00f7f
commit 74e06ac6d0

View file

@ -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;