forked from Fediversity/Fediversity
revert submodule
wrapper to align with module functions already doing types #2
1 changed files with 7 additions and 4 deletions
|
@ -111,9 +111,7 @@ in
|
|||
implementation = cfg: {
|
||||
input = cfg;
|
||||
output = lib.optionalAttrs cfg.enable {
|
||||
resources.hello.login-shell.packages = {
|
||||
inherit (pkgs) hello;
|
||||
};
|
||||
resources.hello.login-shell.packages.hello = pkgs.hello;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -163,14 +161,19 @@ in
|
|||
);
|
||||
in
|
||||
rec {
|
||||
number-of-resources = with lib; length (attrNames fediversity.resources);
|
||||
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 = {
|
||||
number-of-resources = 2;
|
||||
config = {
|
||||
enable = true;
|
||||
applications.hello.enable = true;
|
||||
};
|
||||
hello-package-exists = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue