@cryptotaxi247 / infra-1 / commits / 26989b60

Revive programs.sqlite generation

Eelco Dolstra committed Aug 11, 2016 at 14:43 UTC 26989b60bb2b46ebd73ee3110bd54f3365a85156
1 file changed +4 -11
nixos-org/hydra-mirror.nix
+4 -11
@@ -4,6 +4,8 @@ with lib;
4
5 let
6
7 + channelScripts = import <nixos-channel-scripts> { inherit pkgs; };
8 +
9 makeUpdateChannel = channelName: mainJob:
10 { timers."update-${channelName}" =
11 { wantedBy = [ "timers.target" ];
@@ -15,11 +17,10 @@ let
17 services."update-${channelName}" =
18 { description = "Update Channel ${channelName}";
19 after = [ "networking.target" ];
20 + path = [ channelScripts ];
21 script =
22 ''
20 - source /etc/profile
21 - cd /home/hydra-mirror/nixos-channel-scripts
22 - exec ./mirror-nixos-branch.pl ${channelName} https://hydra.nixos.org/job/${mainJob}/latest-finished \
23 + exec mirror-nixos-branch ${channelName} https://hydra.nixos.org/job/${mainJob}/latest-finished \
24 ${optionalString (channelName == "nixos-16.03") "1"}
25 ''; # */
26 serviceConfig.User = "hydra-mirror";
@@ -29,14 +30,6 @@ let
30 in
31
32 {
32 - environment.systemPackages =
33 - [ pkgs.wget
34 - pkgs.perlPackages.FileSlurp
35 - pkgs.perlPackages.LWP
36 - pkgs.perlPackages.LWPProtocolHttps
37 - pkgs.perlPackages.ListMoreUtils
38 - ];
39 -
33 users.extraUsers.hydra-mirror =
34 { description = "Channel mirroring user";
35 home = "/home/hydra-mirror";