Author: maggesi
Date: Fri May 18 19:13:31 2012
New Revision: 34173
URL: https://nixos.org/websvn/nix/?rev=34173&sc=1

Log:
Add configuration for elio.

Added:
   configurations/trunk/misc/z77z/elio.nix
      - copied, changed from r34140, configurations/trunk/misc/z77z/dolly.nix

Copied and modified: configurations/trunk/misc/z77z/elio.nix (from r34140, 
configurations/trunk/misc/z77z/dolly.nix)
==============================================================================
--- configurations/trunk/misc/z77z/dolly.nix    Wed May 16 20:30:44 2012        
(r34140, copy source)
+++ configurations/trunk/misc/z77z/elio.nix     Fri May 18 19:13:31 2012        
(r34173)
@@ -1,14 +1,21 @@
 { config, pkgs, modulesPath, ... }:
 
+let
+  hydrapkg = 
/nix/store/v70gk4mjqkyp2l4k73pxrbixinvzzsxr-hydra-0.1pre1051-4ad8912;
+in
 {
-  require = [ "${modulesPath}/virtualisation/xen-domU.nix" ];
+  require = [
+    "${modulesPath}/virtualisation/xen-domU.nix"
+    ./modules/hydra.nix
+  ];
 
   fileSystems = [ { mountPoint = "/"; label = "nixos"; } ];
   swapDevices = [ { device = "/dev/xvda1"; } ];
   
   networking = {
-    hostName = "dolly";
-    nameservers = [ "150.217.34.1" "150.217.34.211" ];
+    hostName = "elio";
+    domain = "math.unifi.it";
+    nameservers = [ "150.217.34.129" "150.217.34.211" ];
     defaultMailServer.directDelivery = true;
     defaultMailServer.hostName = "mail.math.unifi.it";
       
@@ -16,7 +23,9 @@
     interfaces =
       [ { name = "eth0";
           ipAddress = "150.217.34.130";
-          subnetMask = "255.255.255.128"; } ];
+          subnetMask = "255.255.255.128";
+        }
+      ];
     defaultGateway = "150.217.34.129";
     extraHosts = ''
       150.217.33.145 neve
@@ -26,8 +35,26 @@
   environment.systemPackages =
     with pkgs;
     [ emacs screen mosh
-      mercurial darcs git fossil
-      ocaml coq ];
+      mercurial darcs git fossil mtr
+      lynx links w3m
+      ocaml coq
+      pkgs.firefoxWrapper
+      pkgs.chromeWrapper
+    ];
+
+  services.hydra = {
+    enable = true;
+    hydra = hydrapkg;
+    #hydraURL = https://elio.math.unifi.it/;
+    notificationSender = "[email protected]";
+    user = "hydra";
+    baseDir = "/home/hydra";
+    dbi = "dbi:Pg:dbname=hydra;host=localhost;user=hydra;";
+    minimumDiskFree = 3;
+    minimumDiskFreeEvaluator = 1;
+    #tracker = "<div>Dipartimento di Matematica Ulisse Dini</div>";
+    autoStart = true;
+  };
 
   services.locate.enable = true;
   services.locate.period = "40 3 * * *";
@@ -38,24 +65,28 @@
 
   services.postgresql.enable = true;
 
-  services.httpd =
-    { enable = true;
-      hostName = "localhost";
-      adminAddr = "[email protected]";
-      documentRoot = "/var/www";
-      enableUserDir = true;
-      /*
-      servedDirs =
-        [ { dir = "/home/maggesi/Devel"; urlPath = "/devo"; }
-          { dir = "/nix/store"; urlPath = "/store"; } ];
-      extraModules =
-        [ { name = "php5";
-            path = "${pkgs.php}/modules/libphp5.so"; } ];
-      extraConfig = ''
-        ScriptAlias /cgi-bin/ /var/www/cgi-bin/
-      '';
-      */
-    };
+  services.httpd = {
+    enable = true;
+    hostName = "elio.math.unifi.it";
+    adminAddr = "[email protected]";
+    documentRoot = "/var/www";
+
+    #enableSSL = true;
+    sslServerCert = "/root/ssl-secrets/elio.crt";
+    sslServerKey = "/root/ssl-secrets/elio.key";
+
+    enableUserDir = true;
+
+    extraModules = [
+      #### Questi non servono, sono caricaty per default
+      # "rewrite" "proxy"
+    ];
+
+    extraConfig = ''
+       #RewriteEngine on
+       #RewriteRule ^/(.*) http://localhost:3000/$1 [P,L] 
+    '';
+  };
 
   time.timeZone = "Europe/Rome";
 
@@ -63,4 +94,15 @@
   krb5.defaultRealm = "MATH.UNIFI.IT";
   krb5.kdc = "kerberos.math.unifi.it";
   krb5.kerberosAdminServer = "kerberos.math.unifi.it";
+
+  users.extraUsers =
+    [ { name = "maggesi";
+        description = "Marco Maggesi";
+        home = "/home/maggesi";
+        group = "users";
+        extraGroups = [ "wheel" ];
+        createHome = true;
+        useDefaultShell = true;
+      }
+    ];
 }
_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits

Reply via email to