From ca00f6f3f8e0d7859e08ffd16baaae7c1a64322c Mon Sep 17 00:00:00 2001 From: Nicolas Pierron Date: Thu, 5 Nov 2009 18:21:09 +0000 Subject: [PATCH] * Fix nix-build errors of tests. svn path=/nixos/trunk/; revision=18151 --- tests/quake3.nix | 2 +- tests/trac.nix | 29 ++++++++++++++--------------- 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/tests/quake3.nix b/tests/quake3.nix index ae2f276880ed..4ee6d63619ec 100644 --- a/tests/quake3.nix +++ b/tests/quake3.nix @@ -20,7 +20,7 @@ rec { { server = { config, pkgs, ... }: - { jobs = pkgs.lib.singleton + { jobs.quake3Server = { name = "quake3-server"; startOn = "startup"; exec = diff --git a/tests/trac.nix b/tests/trac.nix index 785c75b8132a..6db5a382802f 100644 --- a/tests/trac.nix +++ b/tests/trac.nix @@ -16,7 +16,7 @@ rec { services.nfsKernel.exports = '' /repos 192.168.1.0/255.255.255.0(rw,no_root_squash) ''; - services.nfsKernel.createMountPoints = true; + services.nfsKernel.createMountPoints = true; }; postgresql = @@ -24,13 +24,13 @@ rec { { services.sshd.enable = true; services.postgresql.enable = true; - services.postgresql.enableTCPIP = true; + services.postgresql.enableTCPIP = true; services.postgresql.authentication = '' # Generated file; do not edit! local all all trust host all all 127.0.0.1/32 trust - host all all ::1/128 trust - host all all 192.168.1.0/24 trust + host all all ::1/128 trust + host all all 192.168.1.0/24 trust ''; }; @@ -38,17 +38,16 @@ rec { {config, pkgs, ...}: { fileSystems = pkgs.lib.mkOverride 50 {} - [ - { mountPoint = "/repos"; - device = "storage:/repos"; } - ]; + [ + { mountPoint = "/repos"; + device = "storage:/repos"; } + ]; services.portmap.enable = true; - services.nfsKernel.enable = true; services.httpd.enable = true; services.httpd.adminAddr = "root@localhost"; services.httpd.extraSubservices = [ { serviceType = "trac"; } ]; - environment.systemPackages = [ pkgs.pythonPackages.trac pkgs.subversion ]; + environment.systemPackages = [ pkgs.pythonPackages.trac pkgs.subversion ]; }; client = @@ -57,17 +56,17 @@ rec { services.xserver.enable = true; services.xserver.displayManager.slim.enable = false; services.xserver.displayManager.kdm.enable = true; - services.xserver.displayManager.kdm.extraConfig = + services.xserver.displayManager.kdm.extraConfig = '' [X-:0-Core] AutoLoginEnable=true AutoLoginUser=alice AutoLoginPass=foobar ''; - services.xserver.desktopManager.default = "kde4"; - services.xserver.desktopManager.kde4.enable = true; - users.extraUsers = pkgs.lib.singleton { - name = "alice"; + services.xserver.desktopManager.default = "kde4"; + services.xserver.desktopManager.kde4.enable = true; + users.extraUsers = pkgs.lib.singleton { + name = "alice"; description = "Alice Foobar"; home = "/home/alice"; createHome = true;