nixos: make extendModules retain pkgs on nixos configs
This commit is contained in:
parent
074e1daf50
commit
5054472759
1 changed files with 6 additions and 4 deletions
|
@ -109,8 +109,10 @@ let
|
||||||
|
|
||||||
nixosWithUserModules = noUserModules.extendModules { modules = allUserModules; };
|
nixosWithUserModules = noUserModules.extendModules { modules = allUserModules; };
|
||||||
|
|
||||||
|
withExtraArgs = nixosSystem: nixosSystem // {
|
||||||
|
inherit extraArgs;
|
||||||
|
inherit (nixosSystem._module.args) pkgs;
|
||||||
|
extendModules = args: withExtraArgs (nixosSystem.extendModules args);
|
||||||
|
};
|
||||||
in
|
in
|
||||||
withWarnings nixosWithUserModules // {
|
withWarnings (withExtraArgs nixosWithUserModules)
|
||||||
inherit extraArgs;
|
|
||||||
inherit (nixosWithUserModules._module.args) pkgs;
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue