Merge pull request #245910 from R-VdP/nixos_extend_modules
nixos: make extendModules retain pkgs on nixos configs
This commit is contained in:
commit
347a6b2d92
|
@ -109,8 +109,10 @@ let
|
|||
|
||||
nixosWithUserModules = noUserModules.extendModules { modules = allUserModules; };
|
||||
|
||||
withExtraArgs = nixosSystem: nixosSystem // {
|
||||
inherit extraArgs;
|
||||
inherit (nixosSystem._module.args) pkgs;
|
||||
extendModules = args: withExtraArgs (nixosSystem.extendModules args);
|
||||
};
|
||||
in
|
||||
withWarnings nixosWithUserModules // {
|
||||
inherit extraArgs;
|
||||
inherit (nixosWithUserModules._module.args) pkgs;
|
||||
}
|
||||
withWarnings (withExtraArgs nixosWithUserModules)
|
||||
|
|
Loading…
Reference in a new issue