From 7573a88ca683f3715976765f21b7c1de29fbd1aa Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 11 Dec 2006 15:47:30 +0000 Subject: [PATCH] * More refactoring. svn path=/nixos/trunk/; revision=7316 --- configuration/boot-environment.nix | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/configuration/boot-environment.nix b/configuration/boot-environment.nix index 4d7f9d38d7b..31af084695c 100644 --- a/configuration/boot-environment.nix +++ b/configuration/boot-environment.nix @@ -4,10 +4,16 @@ , rootLabel ? "" , stage2Init , readOnlyRoot +, configData ? {} }: rec { + # Make a configuration object from which we can retrieve option + # values. + config = import ./config.nix pkgs.library configData; + + pkgs = import ../pkgs/top-level/all-packages.nix {inherit system;}; pkgsDiet = import ../pkgs/top-level/all-packages.nix { @@ -113,7 +119,9 @@ rec { inherit pkgs upstartJobs; }; - + + # The wrapper setuid programs (since we can't have setuid programs + # in the Nix store). setuidWrapper = import ../helpers/setuid { inherit (pkgs) stdenv; wrapperDir = "/var/setuid-wrappers"; @@ -201,14 +209,4 @@ rec { ]; }; - - config = import ./config.nix pkgs.library configData; - - # The user configuration. - configData = { - networking = { - hostname = "nixos"; - }; - }; - }