forked from fediversity/fediversity
fix application-requirements
This commit is contained in:
parent
6e77c55a98
commit
b70eb52755
1 changed files with 6 additions and 10 deletions
|
|
@ -16,15 +16,6 @@ let
|
|||
;
|
||||
|
||||
functionType = import ./function.nix;
|
||||
application-requirements = {
|
||||
_class = "fediversity-application-requirements";
|
||||
options.resources = mkOption {
|
||||
# TODO: maybe transpose, and group the resources by type instead
|
||||
type = attrsOf (
|
||||
attrTag (lib.mapAttrs (_name: resource: mkOption { type = resource.request; }) config.resources)
|
||||
);
|
||||
};
|
||||
};
|
||||
nixops4Deployment = import ./deployment.nix { inherit lib inputs; };
|
||||
|
||||
configuration = mkOption {
|
||||
|
|
@ -113,7 +104,12 @@ in
|
|||
};
|
||||
resources = mkOption {
|
||||
description = "Mapping of application configuration to deployment resources, a description of what an application needs to run";
|
||||
type = functionTo (types.submodule application-requirements);
|
||||
# TODO: maybe transpose, and group the resources by type instead
|
||||
type = functionTo (
|
||||
attrsOf (
|
||||
attrTag (lib.mapAttrs (_name: resource: mkOption { type = resource.request; }) config.resources)
|
||||
)
|
||||
);
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue