* Remove most references to the "services" tree.

svn path=/nixos/trunk/; revision=26990
This commit is contained in:
Eelco Dolstra 2011-04-27 13:16:33 +00:00
parent be7a7a5b78
commit 650d14be8d
9 changed files with 14 additions and 19 deletions

View File

@ -1,4 +1,4 @@
{ nixpkgs, services, system }: { nixpkgs, system }:
let pkgs = import nixpkgs { config = {}; inherit system; }; in let pkgs = import nixpkgs { config = {}; inherit system; }; in
@ -22,7 +22,7 @@ rec {
nodes: configurations: nodes: configurations:
import ./eval-config.nix { import ./eval-config.nix {
inherit nixpkgs services system; inherit nixpkgs system;
modules = configurations ++ modules = configurations ++
[ ../modules/virtualisation/qemu-vm.nix [ ../modules/virtualisation/qemu-vm.nix
../modules/testing/test-instrumentation.nix # !!! should only get added for automated test runs ../modules/testing/test-instrumentation.nix # !!! should only get added for automated test runs

View File

@ -4,7 +4,6 @@
{ system ? builtins.currentSystem { system ? builtins.currentSystem
, nixpkgs ? import ./from-env.nix "NIXPKGS" /etc/nixos/nixpkgs , nixpkgs ? import ./from-env.nix "NIXPKGS" /etc/nixos/nixpkgs
, services ? ../../services
, pkgs ? null , pkgs ? null
, baseModules ? import ../modules/module-list.nix , baseModules ? import ../modules/module-list.nix
, extraArgs ? {} , extraArgs ? {}
@ -32,7 +31,6 @@ rec {
extraArgs = extraArgs_ // { extraArgs = extraArgs_ // {
inherit pkgs modules baseModules; inherit pkgs modules baseModules;
modulesPath = ../modules; modulesPath = ../modules;
servicesPath = services;
pkgs_i686 = import nixpkgs { system = "i686-linux"; }; pkgs_i686 = import nixpkgs { system = "i686-linux"; };
}; };
@ -53,7 +51,7 @@ rec {
let let
system = if nixpkgsOptions.system != "" then nixpkgsOptions.system else system_; system = if nixpkgsOptions.system != "" then nixpkgsOptions.system else system_;
nixpkgsOptions = (import ./eval-config.nix { nixpkgsOptions = (import ./eval-config.nix {
inherit system nixpkgs services extraArgs modules; inherit system nixpkgs extraArgs modules;
# For efficiency, leave out most NixOS modules; they don't # For efficiency, leave out most NixOS modules; they don't
# define nixpkgs.config, so it's pointless to evaluate them. # define nixpkgs.config, so it's pointless to evaluate them.
baseModules = [ ../modules/misc/nixpkgs.nix ]; baseModules = [ ../modules/misc/nixpkgs.nix ];

View File

@ -1,6 +1,6 @@
{ nixpkgs, services, system }: { nixpkgs, system }:
with import ./build-vms.nix { inherit nixpkgs services system; }; with import ./build-vms.nix { inherit nixpkgs system; };
with pkgs; with pkgs;
rec { rec {

View File

@ -1,11 +1,10 @@
{ nixpkgs { nixpkgs
, services ? "/etc/nixos/services"
, system ? builtins.currentSystem , system ? builtins.currentSystem
, networkExpr , networkExpr
}: }:
let nodes = import networkExpr; in let nodes = import networkExpr; in
with import ../../../../lib/testing.nix { inherit nixpkgs services system; }; with import ../../../../lib/testing.nix { inherit nixpkgs system; };
(complete { inherit nodes; testScript = ""; }).driver (complete { inherit nodes; testScript = ""; }).driver

View File

@ -103,7 +103,7 @@
./services/networking/gvpe.nix ./services/networking/gvpe.nix
./services/networking/gw6c.nix ./services/networking/gw6c.nix
./services/networking/ifplugd.nix ./services/networking/ifplugd.nix
./services/networking/ircd-hybrid.nix #./services/networking/ircd-hybrid.nix
./services/networking/nat.nix ./services/networking/nat.nix
./services/networking/ntpd.nix ./services/networking/ntpd.nix
./services/networking/openfire.nix ./services/networking/openfire.nix
@ -135,7 +135,7 @@
./services/ttys/gpm.nix ./services/ttys/gpm.nix
./services/ttys/mingetty.nix ./services/ttys/mingetty.nix
./services/web-servers/apache-httpd/default.nix ./services/web-servers/apache-httpd/default.nix
./services/web-servers/jboss.nix #./services/web-servers/jboss.nix
./services/web-servers/tomcat.nix ./services/web-servers/tomcat.nix
./services/x11/desktop-managers/default.nix ./services/x11/desktop-managers/default.nix
./services/x11/display-managers/auto.nix ./services/x11/display-managers/auto.nix

View File

@ -1,4 +1,4 @@
{ config, pkgs, servicesPath, ... }: { config, pkgs, ... }:
with pkgs.lib; with pkgs.lib;
@ -7,7 +7,7 @@ let
cfg = config.services.gw6c; cfg = config.services.gw6c;
# !!! Move this from the services tree to the nixos tree. # !!! Move this from the services tree to the nixos tree.
gw6cService = import (servicesPath + /gw6c) { gw6cService = import /etc/nixos/services/gw6c {
inherit (pkgs) stdenv gw6c coreutils inherit (pkgs) stdenv gw6c coreutils
procps iputils gnused procps iputils gnused
gnugrep seccure writeScript; gnugrep seccure writeScript;

View File

@ -1,4 +1,4 @@
{ config, pkgs, servicesPath, ... }: { config, pkgs, ... }:
with pkgs.lib; with pkgs.lib;
@ -72,7 +72,7 @@ let
phpOptions = ""; phpOptions = "";
options = {}; options = {};
}; };
res = defaults // svcFunction {inherit config pkgs serverInfo servicesPath;}; res = defaults // svcFunction { inherit config pkgs serverInfo; };
in res; in res;
in map f defs; in map f defs;

View File

@ -151,10 +151,9 @@ let
} { system = "armv5tel-linux"; }; } { system = "armv5tel-linux"; };
tests = tests =
{ services ? ../services }:
let let
t = import ./tests { t = import ./tests {
inherit nixpkgs services; inherit nixpkgs;
system = "i686-linux"; system = "i686-linux";
}; };
in { in {

View File

@ -1,9 +1,8 @@
{ nixpkgs ? ../../nixpkgs { nixpkgs ? ../../nixpkgs
, services ? ../../services
, system ? builtins.currentSystem , system ? builtins.currentSystem
}: }:
with import ../lib/testing.nix { inherit nixpkgs services system; }; with import ../lib/testing.nix { inherit nixpkgs system; };
{ {
avahi = makeTest (import ./avahi.nix); avahi = makeTest (import ./avahi.nix);