Rewrite the optionDeclarations to collect all options definitions.
svn path=/nixos/trunk/; revision=12521
This commit is contained in:
parent
92560a1dc0
commit
53bdeb43e3
1 changed files with 5 additions and 2 deletions
|
@ -7,7 +7,7 @@
|
|||
rec {
|
||||
configComponents = [
|
||||
configuration
|
||||
optionDeclarations
|
||||
(import ./options.nix {inherit pkgs; inherit (pkgs.lib) mkOption;})
|
||||
];
|
||||
|
||||
noOption = name: values:
|
||||
|
@ -21,7 +21,10 @@ rec {
|
|||
pkgs configComponents;
|
||||
|
||||
optionDeclarations =
|
||||
import ./options.nix {inherit pkgs; inherit (pkgs.lib) mkOption;};
|
||||
pkgs.lib.finalOptionSetsFun
|
||||
pkgs.lib.filterOptionSets
|
||||
pkgs configComponents
|
||||
config;
|
||||
|
||||
pkgs = import "${nixpkgsPath}/pkgs/top-level/all-packages.nix" {system = platform;};
|
||||
|
||||
|
|
Loading…
Reference in a new issue