@cryptotaxi247 / infra-1 / commits / 2088e955

hydra-mirror: automatically prune hydra-mirror working directories

Graham Christensen committed May 8, 2020 at 15:32 UTC 2088e9551fdce21cf279a83493b6bfb1c71c78a9
1 file changed +7
modules/hydra-mirror.nix
+7
@@ -37,6 +37,13 @@ in
37 {
38 imports = [ ./hydra-mirror-user.nix ];
39
40 + systemd.tmpfiles.rules = [
41 + ''
42 + F /scratch/hydra-mirror/nixos-files.sqlite - - - 8d -
43 + e /scratch/hydra-mirror/release-* - - - 1d -
44 + ''
45 + ];
46 +
47 systemd.services = (lib.listToAttrs updateJobs) // {
48 "update-all-channels" = {
49 description = "Start all channel updates.";