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:
parent
ebb88c3428
commit
2c563bd049
1 changed files with 7 additions and 9 deletions
|
@ -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;
|
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue