@cryptotaxi247 / infra / commits / d9dd7d01

Service for mirroring the nixos-unstable-small channel

Eelco Dolstra committed Nov 6, 2014 at 14:29 UTC d9dd7d01d693e4e2cb896a3a59b45e5747267ced
1 file changed +14
delft/lucifer.nix
+14
@@ -151,6 +151,20 @@
151 serviceConfig.CPUShares = 100;
152 };
153
154 + systemd.services.mirror-nixos-unstable-small =
155 + { description = "Mirror NixOS Unstable-small";
156 + wantedBy = [ "multi-user.target" ];
157 + after = [ "networking.target" ];
158 + path = [ pkgs.su ];
159 + script =
160 + ''
161 + rm -rf /data/releases/nixos/unstable-small/.tmp-*
162 + exec su - hydra-mirror -c 'cd release/channels; while true; do ./mirror-nixos-branch.sh unstable-small unstable-small; sleep 1200; done'
163 + '';
164 + serviceConfig.Restart = "always";
165 + serviceConfig.CPUShares = 100;
166 + };
167 +
168 /*
169 systemd.services.mirror-nixos-13-10 =
170 { description = "Mirror NixOS 13.10";