hydra: delete old logs periodically
This commit is contained in:
parent
17f226442e
commit
3bd8198e83
1 changed files with 6 additions and 0 deletions
|
@ -64,6 +64,12 @@ in
|
|||
sops.secrets.nix-community-cachix.sopsFile = ../../roles/nix-community-cache/secrets.yaml;
|
||||
sops.secrets.id_buildfarm = { };
|
||||
|
||||
# delete build logs older than 30 days
|
||||
systemd.services.hydra-delete-old-logs = {
|
||||
startAt = "Sun 05:45";
|
||||
serviceConfig.ExecStart = "${pkgs.findutils}/bin/find /var/lib/hydra/build-logs -type f -mtime +30 -delete";
|
||||
};
|
||||
|
||||
services.hydra = {
|
||||
enable = true;
|
||||
# remote builders set in /etc/nix/machines + localhost
|
||||
|
|
Loading…
Add table
Reference in a new issue