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;
|
||||
specialArgs = { modulesPath = builtins.toString ./modules; } // specialArgs;
|
||||
});
|
||||
in
|
||||
|
||||
{
|
||||
inherit (eval._module.args) pkgs;
|
||||
inherit (eval) options config;
|
||||
inherit (eval) _module;
|
||||
|
||||
system = eval.config.system.build.toplevel;
|
||||
}
|
||||
|
||||
withExtraAttrs = configuration: configuration // {
|
||||
inherit (configuration._module.args) pkgs;
|
||||
system = configuration.config.system.build.toplevel;
|
||||
extendModules = args: withExtraAttrs (configuration.extendModules args);
|
||||
};
|
||||
in withExtraAttrs eval
|
||||
|
|
Loading…
Add table
Reference in a new issue