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; };
|
||||
|
||||
in
|
||||
withWarnings nixosWithUserModules // {
|
||||
withExtraArgs = nixosSystem: nixosSystem // {
|
||||
inherit extraArgs;
|
||||
inherit (nixosWithUserModules._module.args) pkgs;
|
||||
}
|
||||
inherit (nixosSystem._module.args) pkgs;
|
||||
extendModules = args: withExtraArgs (nixosSystem.extendModules args);
|
||||
};
|
||||
in
|
||||
withWarnings (withExtraArgs nixosWithUserModules)
|
||||
|
|
Loading…
Reference in a new issue