@cryptotaxi247 / infra-1 / commits / b8c572d3

Mirror the nixos-14.04-small channel

Eelco Dolstra committed Sep 25, 2014 at 13:12 UTC b8c572d3cccfe8800f70b956e71373df69190375
1 file changed +16
delft/lucifer.nix
+16
@@ -140,6 +140,7 @@
140 serviceConfig.CPUShares = 100;
141 };
142
143 + /*
144 systemd.services.mirror-nixos-13-10 =
145 { description = "Mirror NixOS 13.10";
146 wantedBy = [ "multi-user.target" ];
@@ -153,6 +154,7 @@
154 serviceConfig.Restart = "always";
155 serviceConfig.CPUShares = 100;
156 };
157 + */
158
159 systemd.services.mirror-nixos-14-04 =
160 { description = "Mirror NixOS 14.04";
@@ -168,6 +170,20 @@
170 serviceConfig.CPUShares = 100;
171 };
172
173 + systemd.services.mirror-nixos-14-04-small =
174 + { description = "Mirror NixOS 14.04-small";
175 + wantedBy = [ "multi-user.target" ];
176 + after = [ "networking.target" ];
177 + path = [ pkgs.su ];
178 + script =
179 + ''
180 + rm -rf /data/releases/nixos/14.04-small/.tmp-*
181 + exec su - hydra-mirror -c 'cd release/channels; while true; do ./mirror-nixos-stable.sh 14.04-small; sleep 900; done'
182 + '';
183 + serviceConfig.Restart = "always";
184 + serviceConfig.CPUShares = 100;
185 + };
186 +
187 nix.sshServe.enable = true;
188 nix.sshServe.keys = with import ../ssh-keys.nix; [ eelco rob ];
189