* Hack for Maven builds.
svn path=/configurations/trunk/tud/; revision=34719
Eelco Dolstra committed
May 10, 2013 at 17:20 UTC
85216aaa12055da1e58c5ed84cd57d1007b90870
1 file changed
+13
-1
build-machines-common.nix
+13
-1
@@ -1,7 +1,15 @@
1
{ config, pkgs, ... }:
2
3
with pkgs.lib;
4
-
4
+let
5
+ m3chown = pkgs.writeScript "chown-tmp-m3" ''
6
+ #! /bin/sh
7
+ set -e
8
+ if [[ -d /tmp/m3 ]]; then
9
+ chmod ug+w -R /tmp/m3
10
+ fi
11
+ '';
12
+in
13
{
14
require = [ ./common.nix ];
15
@@ -26,6 +34,10 @@ with pkgs.lib;
34
35
networking.hostName = ""; # obtain from DHCP server
36
37
+ services.cron.systemCronJobs = [
38
+ "0,30 * * * * ${m3chown}"
39
+ ];
40
+
41
users.extraUsers =
42
[ { name = "buildfarm";
43
description = "Hydra unprivileged build slave";