Rewrite the optionDeclarations to collect all options definitions.

svn path=/nixos/trunk/; revision=12521
This commit is contained in:
Nicolas Pierron 2008-08-06 18:43:53 +00:00
parent 92560a1dc0
commit 53bdeb43e3

View file

@ -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;};