* Mirror nixpkgs-systemd.
svn path=/configurations/trunk/tud/; revision=34673
Eelco Dolstra committed
Jan 14, 2013 at 11:57 UTC
3a1df6c64e550edb054a63037b2148af87be4e6a
1 file changed
+15
lucifer.nix
+15
@@ -145,4 +145,19 @@
145
serviceConfig.CPUShares = 100;
146
};
147
148
+ # Temporary binary cache generation for the Nixpkgs systemd branch.
149
+ boot.systemd.services.mirror-nixpkgs-systemd =
150
+ { description = "Mirror Nixpkgs-systemd";
151
+ wantedBy = [ "multi-user.target" ];
152
+ after = [ "networking.target" ];
153
+ path = [ pkgs.su ];
154
+ script =
155
+ ''
156
+ rm -rf /data/releases/nixpkgs-systemd/.tmp-*
157
+ exec su - hydra-mirror -c 'cd release/channels; while true; do ./mirror-nixpkgs-systemd.sh; sleep 300; done'
158
+ '';
159
+ serviceConfig.Restart = "always";
160
+ serviceConfig.CPUShares = 100;
161
+ };
162
+
163
}