Replace the check function with a function specialized for modules.

svn path=/nixos/trunk/; revision=18821
This commit is contained in:
Nicolas Pierron 2009-12-05 19:22:02 +00:00
parent 82a891dc46
commit 12401536fc

View file

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