wrapper-manager-fds/modules: set pkgs on integration modules modularly

Now we have consistent behavior on both manual evaluation and on the
integration modules.
This commit is contained in:
Gabriel Arazas 2024-07-21 17:50:20 +08:00
parent 3d6e91bf21
commit 92f8103743

View File

@ -6,12 +6,13 @@ let
wrapperManagerModule = lib.types.submoduleWith {
description = "wrapper-manager module";
class = "wrapperManager";
specialArgs = cfg.extraSpecialArgs // {
inherit pkgs;
modulesPath = builtins.toString ../wrapper-manager;
};
specialArgs = cfg.extraSpecialArgs;
modules = [
../wrapper-manager
({ lib, ... }: {
config._module.args.pkgs = lib.mkDefault pkgs;
})
] ++ cfg.sharedModules;
};
in