forked from fediversity/fediversity
WIP
This commit is contained in:
parent
21aaa26510
commit
6ae158bd0f
1 changed files with 7 additions and 4 deletions
|
@ -8,7 +8,7 @@ let
|
||||||
inherit (lib.types)
|
inherit (lib.types)
|
||||||
attrsOf
|
attrsOf
|
||||||
attrTag
|
attrTag
|
||||||
deferredModule
|
deferredModuleWith
|
||||||
mergeTypes
|
mergeTypes
|
||||||
nullOr
|
nullOr
|
||||||
submoduleWith
|
submoduleWith
|
||||||
|
@ -24,14 +24,15 @@ in
|
||||||
submodule (
|
submodule (
|
||||||
{ config, ... }:
|
{ config, ... }:
|
||||||
{
|
{
|
||||||
|
class = "fediversity-resource";
|
||||||
options = {
|
options = {
|
||||||
consumer = mkOption {
|
consumer = mkOption {
|
||||||
description = "Configuration of the resource by an application, a description of how the resource is consumed";
|
description = "Configuration of the resource by an application, a description of how the resource is consumed";
|
||||||
type = deferredModule;
|
type = deferredModuleWith { staticModules = [ { class = "fediversity-resource-consumer"; } ]; };
|
||||||
};
|
};
|
||||||
provider = mkOption {
|
provider = mkOption {
|
||||||
description = "Configuration of the resource by the hosting provider, a description of how the resource is made available";
|
description = "Configuration of the resource by the hosting provider, a description of how the resource is made available";
|
||||||
type = deferredModule;
|
type = deferredModuleWith { staticModules = [ { class = "fediversity-resource-provider"; } ]; };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -44,10 +45,11 @@ in
|
||||||
submodule (
|
submodule (
|
||||||
{ config, ... }:
|
{ config, ... }:
|
||||||
{
|
{
|
||||||
|
class = "fediversity-application";
|
||||||
options = {
|
options = {
|
||||||
module = mkOption {
|
module = mkOption {
|
||||||
description = "Operator-facing configuration options for the application";
|
description = "Operator-facing configuration options for the application";
|
||||||
type = deferredModule;
|
type = deferredModuleWith { staticModules = [ { class = "fediversity-application-config"; } ]; };
|
||||||
};
|
};
|
||||||
config-mapping = mkOption {
|
config-mapping = mkOption {
|
||||||
description = "Mapping of application configuration to deployment resources, a description of what an application needs to run";
|
description = "Mapping of application configuration to deployment resources, a description of what an application needs to run";
|
||||||
|
@ -64,6 +66,7 @@ in
|
||||||
submodule (
|
submodule (
|
||||||
{ config, ... }:
|
{ config, ... }:
|
||||||
{
|
{
|
||||||
|
class = "fediversity-environment";
|
||||||
options = {
|
options = {
|
||||||
required-resources = mkOption {
|
required-resources = mkOption {
|
||||||
description = "Resources required by configured applications";
|
description = "Resources required by configured applications";
|
||||||
|
|
Loading…
Add table
Reference in a new issue