From 9fd9c617a9c84293b67b2a43ca752b30565f2b88 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Fri, 17 Dec 2021 14:07:47 +0100 Subject: [PATCH] nixos/lib/eval-config.nix: Return all of evalModules return attrs We were exposing everything pointwise anyway. If any new attrs are added, there's a good chance we'll want to expose them anyway. --- nixos/lib/eval-config.nix | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/nixos/lib/eval-config.nix b/nixos/lib/eval-config.nix index 89fb93ba70ad..00e58e24e926 100644 --- a/nixos/lib/eval-config.nix +++ b/nixos/lib/eval-config.nix @@ -88,13 +88,8 @@ let nixosWithUserModules = noUserModules.extendModules { modules = allUserModules; }; -in withWarnings { - - # Merge the option definitions in all modules, forming the full - # system configuration. - inherit (nixosWithUserModules) config options _module type extendModules; - +in +withWarnings nixosWithUserModules // { inherit extraArgs; - inherit (nixosWithUserModules._module.args) pkgs; }