revert submodule wrapper to align with module functions already doing types #2

Closed
kiara wants to merge 37 commits from kiara/Fediversity:fix-submodule-type into main
Showing only changes of commit a102ad93b7 - Show all commits

View file

@ -111,9 +111,7 @@ in
implementation = cfg: { implementation = cfg: {
input = cfg; input = cfg;
output = lib.optionalAttrs cfg.enable { output = lib.optionalAttrs cfg.enable {
resources.hello.login-shell.packages = { resources.hello.login-shell.packages.hello = pkgs.hello;
inherit (pkgs) hello;
};
}; };
}; };
}; };
@ -163,14 +161,19 @@ in
); );
in in
rec { rec {
number-of-resources = with lib; length (attrNames fediversity.resources);
config = fediversity.example-configuration; config = fediversity.example-configuration;
resources = fediversity.applications.hello.implementation config.applications.hello; hello-package-exists =
(fediversity.applications.hello.resources config.applications.hello)
.resources.hello.login-shell.packages ? hello;
}; };
expected = { expected = {
number-of-resources = 2;
config = { config = {
enable = true; enable = true;
applications.hello.enable = true; applications.hello.enable = true;
}; };
hello-package-exists = true;
}; };
}; };
} }