forked from mirrors/nixpkgs
Moved configuration check option into configuration.nix (environment.checkConfigurationOptions)
svn path=/nixos/trunk/; revision=10157
This commit is contained in:
parent
ec727d660a
commit
d69cc82771
|
@ -1872,6 +1872,13 @@ root ALL=(ALL) SETENV: ALL
|
|||
";
|
||||
};
|
||||
|
||||
checkConfigurationOptions = mkOption {
|
||||
default = false;
|
||||
example = true;
|
||||
description = "
|
||||
If all configuration options must be checked. Non-existing options fail build.
|
||||
";
|
||||
};
|
||||
};
|
||||
|
||||
nesting = {
|
||||
|
|
|
@ -369,6 +369,8 @@ rec {
|
|||
configuration = x//{boot=((x.boot)//{grubDevice = "";});};}).system)
|
||||
config.nesting.children;
|
||||
configurationName = config.boot.configurationName;
|
||||
}) (pkgs.getConfig ["checkConfigurationOptions"] false)
|
||||
optionDeclarations configuration ;
|
||||
}) (pkgs.lib.getAttr ["environment" "checkConfigurationOptions"]
|
||||
optionDeclarations.environment.checkConfigurationOptions.default
|
||||
configuration)
|
||||
optionDeclarations configuration ;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue