mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 00:54:11 +00:00
* More refactoring.
svn path=/nixos/trunk/; revision=7316
This commit is contained in:
parent
ce29e4efc7
commit
7573a88ca6
|
@ -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 {
|
||||
|
@ -114,6 +120,8 @@ rec {
|
|||
};
|
||||
|
||||
|
||||
# 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";
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue