mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
expose extendModules
This commit is contained in:
parent
c8d3157d1f
commit
5ea0675881
1 changed files with 9 additions and 9 deletions
|
@ -20,12 +20,12 @@ 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 = module:
|
||||
{
|
||||
inherit (module._module.args) pkgs;
|
||||
inherit (module) options config _module;
|
||||
system = module.config.system.build.toplevel;
|
||||
extendModules = args: withExtraAttrs (module.extendModules args);
|
||||
};
|
||||
in withExtraAttrs eval
|
||||
|
|
Loading…
Reference in a new issue