3
0
Fork 0
forked from mirrors/nixpkgs

Moved configuration check option into configuration.nix (environment.checkConfigurationOptions)

svn path=/nixos/trunk/; revision=10157
This commit is contained in:
Michael Raskin 2008-01-15 16:05:51 +00:00
parent ec727d660a
commit d69cc82771
2 changed files with 11 additions and 2 deletions

View file

@ -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 = {

View file

@ -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 ;
}