Author: eelco
Date: Mon Aug 22 16:26:43 2011
New Revision: 28741
URL: https://svn.nixos.org/websvn/nix/?rev=28741&sc=1

Log:


Added:
   configurations/trunk/tud/wendy.nix
      - copied, changed from r28491, 
configurations/trunk/tud/build-machines-dell-r815.nix

Copied and modified: configurations/trunk/tud/wendy.nix (from r28491, 
configurations/trunk/tud/build-machines-dell-r815.nix)
==============================================================================
--- configurations/trunk/tud/build-machines-dell-r815.nix       Thu Aug 11 
12:33:59 2011        (r28491, copy source)
+++ configurations/trunk/tud/wendy.nix  Mon Aug 22 16:26:43 2011        (r28741)
@@ -1,16 +1,47 @@
 { config, pkgs, ... }:
 
 {
-  boot.loader.grub.version = 2;
-  require = [ ./build-machines-common.nix ];
-  nixpkgs.system = "x86_64-linux";
-
-  boot.initrd.kernelModules = [ "megaraid_sas" "ext4" ];
-  boot.kernelModules = [ "acpi-cpufreq" "kvm-amd" ];
-
-  nix.maxJobs = 48;
-
-  fileSystems = [ 
-    { device = "none"; fsType = "tmpfs"; mountPoint = "/tmp"; options = 
"size=16G"; neededForBoot=true; } 
-  ];
+  require = [ ./build-machines-dell-r815.nix ];
+
+  services.httpd.enable = true;
+  services.httpd.adminAddr = "[email protected]";
+  services.httpd.enableUserDir = true;
+  services.httpd.hostName = "wendy";
+  services.httpd.extraConfig =
+    ''
+      UseCanonicalName On
+    '';
+
+  jobs.mturk_webserver_production =
+    { name = "mturk-webserver-production";
+      startOn = "started network-interfaces";
+      exec = ''
+        ${pkgs.su}/bin/su - mturk -c 'MTURK_STATE=/home/mturk/state-production 
WEBINTERFACE_HOME=/home/mturk/icse-2012/src/WebInterface exec 
/home/mturk/icse-2012/src/WebInterface/script/webinterface_server.pl >> 
/home/mturk/state-production/webserver.log 2>&1'
+      '';
+    };
+
+  jobs.mturk_webserver_sandbox =
+    { name = "mturk-webserver-sandbox";
+      startOn = "started network-interfaces";
+      exec = ''
+        ${pkgs.su}/bin/su - mturk -c 
'WEBINTERFACE_HOME=/home/mturk/icse-2012/src/WebInterface exec 
/home/mturk/icse-2012/src/WebInterface/script/webinterface_server.pl -p 3001 >> 
/home/mturk/state-sandbox/webserver.log 2>&1'
+      '';
+    };
+
+  jobs.mturk_vnc_multiplexer_production =
+    { name = "mturk-vnc-multiplexer-production";
+      startOn = "started network-interfaces";
+      exec = ''
+        ${pkgs.su}/bin/su - mturk -c 'MTURK_STATE=/home/mturk/state-production 
exec vnc-multiplexer.pl >> /home/mturk/state-production/multiplexer.log 2>&1'
+      '';
+    };
+
+  jobs.mturk_vnc_multiplexer_sandbox =
+    { name = "mturk-vnc-multiplexer-sandbox";
+      startOn = "started network-interfaces";
+      exec = ''
+        ${pkgs.su}/bin/su - mturk -c 'exec vnc-multiplexer.pl >> 
/home/mturk/state-sandbox/multiplexer.log 2>&1'
+      '';
+    };
+
 }
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to