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 = {
|
nesting = {
|
||||||
|
@ -369,6 +369,8 @@ rec {
|
|||||||
configuration = x//{boot=((x.boot)//{grubDevice = "";});};}).system)
|
configuration = x//{boot=((x.boot)//{grubDevice = "";});};}).system)
|
||||||
config.nesting.children;
|
config.nesting.children;
|
||||||
configurationName = config.boot.configurationName;
|
configurationName = config.boot.configurationName;
|
||||||
}) (pkgs.getConfig ["checkConfigurationOptions"] false)
|
}) (pkgs.lib.getAttr ["environment" "checkConfigurationOptions"]
|
||||||
|
optionDeclarations.environment.checkConfigurationOptions.default
|
||||||
|
configuration)
|
||||||
optionDeclarations configuration ;
|
optionDeclarations configuration ;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user