1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-31 04:04:45 +00:00

expose extendModules

This commit is contained in:
hiroqn 2024-01-13 17:01:25 +09:00
parent ebb88c3428
commit 2c563bd049

View file

@ -82,12 +82,10 @@ let
modules = modules ++ [ argsModule ] ++ baseModules; modules = modules ++ [ argsModule ] ++ baseModules;
specialArgs = { modulesPath = builtins.toString ./modules; } // specialArgs; specialArgs = { modulesPath = builtins.toString ./modules; } // specialArgs;
}); });
in
withExtraAttrs = configuration: configuration // {
{ inherit (configuration._module.args) pkgs;
inherit (eval._module.args) pkgs; system = configuration.config.system.build.toplevel;
inherit (eval) options config; extendModules = args: withExtraAttrs (configuration.extendModules args);
inherit (eval) _module; };
in withExtraAttrs eval
system = eval.config.system.build.toplevel;
}