Fix nixos-option

In particular, it no longer produces an "infinite recursion" error
when run with no arguments.
This commit is contained in:
Eelco Dolstra
2013-10-28 22:43:29 +01:00
parent c9dad37f01
commit 3115addf4c
4 changed files with 22 additions and 21 deletions

View File

@@ -16,14 +16,11 @@ rec {
# Merge the option definitions in all modules, forming the full
# system configuration.
systemModule =
pkgs.lib.evalModules {
modules = modules ++ baseModules;
args = extraArgs;
inherit check;
};
config = systemModule.config;
inherit (pkgs.lib.evalModules {
modules = modules ++ baseModules;
args = extraArgs;
inherit check;
}) config options;
# These are the extra arguments passed to every module. In
# particular, Nixpkgs is passed through the "pkgs" argument.