diff --git a/nixos/lib/eval-config.nix b/nixos/lib/eval-config.nix index 0297ca4bd9d9..07653c22fb5c 100644 --- a/nixos/lib/eval-config.nix +++ b/nixos/lib/eval-config.nix @@ -81,14 +81,15 @@ let }; }; -in rec { + nixosWithUserModules = noUserModules.extendModules { modules = allUserModules; }; + +in { # Merge the option definitions in all modules, forming the full # system configuration. - inherit (noUserModules.extendModules { modules = allUserModules; }) - config options _module type; + inherit (nixosWithUserModules) config options _module type; inherit extraArgs; - inherit (_module.args) pkgs; + inherit (nixosWithUserModules._module.args) pkgs; }