forked from Fediversity/Fediversity
WIP: get past dumb type error
This commit is contained in:
parent
a102ad93b7
commit
8c571c2dbe
1 changed files with 27 additions and 23 deletions
|
@ -119,8 +119,9 @@ in
|
|||
{ config, ... }:
|
||||
{
|
||||
resources.shell.login-shell.username = "operator";
|
||||
implementation =
|
||||
requests:
|
||||
implementation = requests: {
|
||||
input = requests;
|
||||
output =
|
||||
{ providers, ... }:
|
||||
{
|
||||
providers = {
|
||||
|
@ -142,6 +143,7 @@ in
|
|||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
options = {
|
||||
example-configuration = mkOption {
|
||||
type = config.configuration;
|
||||
|
@ -162,18 +164,20 @@ in
|
|||
in
|
||||
rec {
|
||||
number-of-resources = with lib; length (attrNames fediversity.resources);
|
||||
config = fediversity.example-configuration;
|
||||
inherit (fediversity) example-configuration;
|
||||
hello-package-exists =
|
||||
(fediversity.applications.hello.resources config.applications.hello)
|
||||
(fediversity.applications.hello.resources example-configuration.applications.hello)
|
||||
.resources.hello.login-shell.packages ? hello;
|
||||
inherit (fediversity) example-deployment;
|
||||
};
|
||||
expected = {
|
||||
number-of-resources = 2;
|
||||
config = {
|
||||
example-configuration = {
|
||||
enable = true;
|
||||
applications.hello.enable = true;
|
||||
};
|
||||
hello-package-exists = true;
|
||||
example-deployment = { };
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue