Use "definitionsOf" & "fixableDeclarationsOf": Hide implementation details.
svn path=/nixos/branches/modular-nixos/; revision=16199
This commit is contained in:
parent
36bc4971ba
commit
284f0e7d26
@ -17,16 +17,17 @@ rec {
|
|||||||
] ++ (import ../modules/module-list.nix);
|
] ++ (import ../modules/module-list.nix);
|
||||||
|
|
||||||
config_ =
|
config_ =
|
||||||
pkgs.lib.fixOptionSets
|
pkgs.lib.definitionsOf configComponents {
|
||||||
pkgs.lib.mergeOptionSets
|
inherit pkgs;
|
||||||
{ inherit pkgs; } configComponents;
|
};
|
||||||
|
|
||||||
|
# "fixableDeclarationsOf" is used instead of "declarationsOf" because some
|
||||||
|
# option default values may depends on the definition of other options.
|
||||||
optionDeclarations =
|
optionDeclarations =
|
||||||
pkgs.lib.fixOptionSetsFun
|
pkgs.lib.fixableDeclarationsOf configComponents {
|
||||||
pkgs.lib.filterOptionSets
|
inherit pkgs;
|
||||||
{ inherit pkgs; } configComponents
|
} config_;
|
||||||
config_;
|
|
||||||
|
|
||||||
# Optionally check wether all config values have corresponding
|
# Optionally check wether all config values have corresponding
|
||||||
# option declarations.
|
# option declarations.
|
||||||
config = pkgs.checker config_
|
config = pkgs.checker config_
|
||||||
|
Loading…
x
Reference in New Issue
Block a user