mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 04:35:41 +03:00
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
1 changed files with 4 additions and 3 deletions
|
@ -61,7 +61,8 @@ rec {
|
||||||
|
|
||||||
# Optionally check wether all config values have corresponding
|
# Optionally check wether all config values have corresponding
|
||||||
# option declarations.
|
# option declarations.
|
||||||
config = pkgs.checker optionDefinitions
|
config =
|
||||||
optionDefinitions.environment.checkConfigurationOptions
|
let doCheck = optionDefinitions.environment.checkConfigurationOptions; in
|
||||||
options optionDefinitions;
|
assert doCheck -> pkgs.lib.checkModule "" systemModule;
|
||||||
|
systemModule.config;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue