hydra gc every 20h
metrics analysis has showed that this is unlikely to fill up the builders
This commit is contained in:
parent
3ff9d00f7f
commit
74e06ac6d0
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue