aboutsummaryrefslogtreecommitdiff
path: root/nixops/modules/buildbot
diff options
context:
space:
mode:
Diffstat (limited to 'nixops/modules/buildbot')
-rw-r--r--nixops/modules/buildbot/default.nix9
1 files changed, 4 insertions, 5 deletions
diff --git a/nixops/modules/buildbot/default.nix b/nixops/modules/buildbot/default.nix
index d7dd479..c812af9 100644
--- a/nixops/modules/buildbot/default.nix
+++ b/nixops/modules/buildbot/default.nix
@@ -61,11 +61,7 @@ in
61 61
62 system.activationScripts = lib.attrsets.mapAttrs' (k: project: lib.attrsets.nameValuePair "buildbot-${project.name}" { 62 system.activationScripts = lib.attrsets.mapAttrs' (k: project: lib.attrsets.nameValuePair "buildbot-${project.name}" {
63 deps = [ "users" "wrappers" ]; 63 deps = [ "users" "wrappers" ];
64 text = '' 64 text = project.activationScript;
65 install -m 0755 -o buildbot -g buildbot -d /run/buildbot/
66 install -m 0755 -o buildbot -g buildbot -d ${varDir}
67 ${project.activationScript}
68 '';
69 }) myconfig.env.buildbot.projects; 65 }) myconfig.env.buildbot.projects;
70 66
71 secrets.keys = ( 67 secrets.keys = (
@@ -190,6 +186,9 @@ in
190 Type = "forking"; 186 Type = "forking";
191 User = "buildbot"; 187 User = "buildbot";
192 Group = "buildbot"; 188 Group = "buildbot";
189 RuntimeDirectory = "buildbot";
190 RuntimeDirectoryPreserve = "yes";
191 StateDirectory = "buildbot";
193 SupplementaryGroups = "keys"; 192 SupplementaryGroups = "keys";
194 WorkingDirectory = "${varDir}/${project.name}"; 193 WorkingDirectory = "${varDir}/${project.name}";
195 ExecStart = "${buildbot}/bin/buildbot start"; 194 ExecStart = "${buildbot}/bin/buildbot start";