forked from mirrors/nixpkgs
Replace the check function with a function specialized for modules.
svn path=/nixos/trunk/; revision=18821
This commit is contained in:
parent
82a891dc46
commit
12401536fc
|
@ -61,7 +61,8 @@ rec {
|
|||
|
||||
# Optionally check wether all config values have corresponding
|
||||
# option declarations.
|
||||
config = pkgs.checker optionDefinitions
|
||||
optionDefinitions.environment.checkConfigurationOptions
|
||||
options optionDefinitions;
|
||||
config =
|
||||
let doCheck = optionDefinitions.environment.checkConfigurationOptions; in
|
||||
assert doCheck -> pkgs.lib.checkModule "" systemModule;
|
||||
systemModule.config;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue