From 0b5aea2b2779ca5aa26dbe454af327828fb1683e Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Thu, 2 Dec 2021 18:11:20 +0000 Subject: [PATCH] nixos/eval-config: Remove a rec --- nixos/lib/eval-config.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/nixos/lib/eval-config.nix b/nixos/lib/eval-config.nix index 0297ca4bd9d..07653c22fb5 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; }