* Move the hardware modules back to the main modules tree. No need
for a separate tree. * Pass the path of the modules tree to modules so that you don't have to write absolute paths, e.g. you can say require = [ "${modulesPath}/hardware/network/intel-3945abg.nix" ]; instead of require = [ /etc/nixos/nixos/hardware/network/intel-3945abg.nix ]; The latter is bad because it makes it hard to build from a different NixOS source tree. svn path=/nixos/branches/modular-nixos/; revision=16350
This commit is contained in:
parent
b84bab7873
commit
b56d08fc83
@ -16,17 +16,18 @@ rec {
|
||||
./check-config.nix
|
||||
] ++ (import ../modules/module-list.nix);
|
||||
|
||||
extraArgs = {
|
||||
inherit pkgs;
|
||||
modulesPath = ../modules;
|
||||
};
|
||||
|
||||
config_ =
|
||||
pkgs.lib.definitionsOf configComponents {
|
||||
inherit pkgs;
|
||||
};
|
||||
pkgs.lib.definitionsOf configComponents extraArgs;
|
||||
|
||||
# "fixableDeclarationsOf" is used instead of "declarationsOf" because some
|
||||
# option default values may depends on the definition of other options.
|
||||
optionDeclarations =
|
||||
pkgs.lib.fixableDeclarationsOf configComponents {
|
||||
inherit pkgs;
|
||||
} config_;
|
||||
pkgs.lib.fixableDeclarationsOf configComponents extraArgs config_;
|
||||
|
||||
# Optionally check wether all config values have corresponding
|
||||
# option declarations.
|
||||
|
Loading…
Reference in New Issue
Block a user