Inline the require attribute and move the set into lib/check-config.nix.
svn path=/nixos/branches/modular-nixos/; revision=16194
This commit is contained in:
parent
26fcc601a6
commit
36bc4971ba
11
lib/check-config.nix
Normal file
11
lib/check-config.nix
Normal file
@ -0,0 +1,11 @@
|
||||
{pkgs, ...}:
|
||||
|
||||
{
|
||||
environment.checkConfigurationOptions = pkgs.lib.mkOption {
|
||||
default = true;
|
||||
example = false;
|
||||
description = ''
|
||||
Whether to check the validity of the entire configuration.
|
||||
'';
|
||||
};
|
||||
}
|
@ -13,17 +13,8 @@ rec {
|
||||
|
||||
configComponents = [
|
||||
configuration
|
||||
{
|
||||
require = import ../modules/module-list.nix;
|
||||
environment.checkConfigurationOptions = pkgs.lib.mkOption {
|
||||
default = true;
|
||||
example = false;
|
||||
description = ''
|
||||
Whether to check the validity of the entire configuration.
|
||||
'';
|
||||
};
|
||||
}
|
||||
];
|
||||
./check-config.nix
|
||||
] ++ (import ../modules/module-list.nix);
|
||||
|
||||
config_ =
|
||||
pkgs.lib.fixOptionSets
|
||||
|
Loading…
x
Reference in New Issue
Block a user