diff --git a/lib/eval-config.nix b/lib/eval-config.nix index d5947e8d870..4a1853a8d32 100644 --- a/lib/eval-config.nix +++ b/lib/eval-config.nix @@ -16,17 +16,18 @@ rec { ./check-config.nix ] ++ (import ../modules/module-list.nix); + extraArgs = { + inherit pkgs; + modulesPath = ../modules; + }; + config_ = - pkgs.lib.definitionsOf configComponents { - inherit pkgs; - }; + pkgs.lib.definitionsOf configComponents extraArgs; # "fixableDeclarationsOf" is used instead of "declarationsOf" because some # option default values may depends on the definition of other options. optionDeclarations = - pkgs.lib.fixableDeclarationsOf configComponents { - inherit pkgs; - } config_; + pkgs.lib.fixableDeclarationsOf configComponents extraArgs config_; # Optionally check wether all config values have corresponding # option declarations.