Browse Source

Replace the check function with a function specialized for modules.

svn path=/nixos/trunk/; revision=18821
nsd-state-dir
Nicolas Pierron 13 years ago
parent
commit
12401536fc
  1. 7
      lib/eval-config.nix

7
lib/eval-config.nix

@ -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…
Cancel
Save