forked from fediversity/fediversity
data model: add name
Signed-off-by: Kiara Grouwstra <kiara@procolix.eu>
This commit is contained in:
parent
a21fa44c94
commit
274486795a
1 changed files with 22 additions and 1 deletions
|
@ -261,10 +261,17 @@ in
|
||||||
description = "Collection of deployment resources that can be required by applications and policed by hosting providers";
|
description = "Collection of deployment resources that can be required by applications and policed by hosting providers";
|
||||||
type = attrsOf (
|
type = attrsOf (
|
||||||
submodule (
|
submodule (
|
||||||
{ ... }:
|
resource:
|
||||||
{
|
{
|
||||||
_class = "fediversity-resource";
|
_class = "fediversity-resource";
|
||||||
options = {
|
options = {
|
||||||
|
name = lib.mkOption {
|
||||||
|
type = lib.types.str;
|
||||||
|
description = "name of the resource";
|
||||||
|
readOnly = true;
|
||||||
|
default = resource.config._module.args.name;
|
||||||
|
defaultText = "name of the resource";
|
||||||
|
};
|
||||||
description = mkOption {
|
description = mkOption {
|
||||||
description = "Description of the resource to help application module authors and hosting providers to work with it";
|
description = "Description of the resource to help application module authors and hosting providers to work with it";
|
||||||
type = types.str;
|
type = types.str;
|
||||||
|
@ -304,6 +311,13 @@ in
|
||||||
submodule (application: {
|
submodule (application: {
|
||||||
_class = "fediversity-application";
|
_class = "fediversity-application";
|
||||||
options = {
|
options = {
|
||||||
|
name = lib.mkOption {
|
||||||
|
type = lib.types.str;
|
||||||
|
description = "name of the application";
|
||||||
|
readOnly = true;
|
||||||
|
default = application.config._module.args.name;
|
||||||
|
defaultText = "name of the application";
|
||||||
|
};
|
||||||
description = mkOption {
|
description = mkOption {
|
||||||
description = "Description to be shown in the application overview";
|
description = "Description to be shown in the application overview";
|
||||||
type = types.str;
|
type = types.str;
|
||||||
|
@ -343,6 +357,13 @@ in
|
||||||
submodule (environment: {
|
submodule (environment: {
|
||||||
_class = "fediversity-environment";
|
_class = "fediversity-environment";
|
||||||
options = {
|
options = {
|
||||||
|
name = lib.mkOption {
|
||||||
|
type = lib.types.str;
|
||||||
|
description = "name of the environment";
|
||||||
|
readOnly = true;
|
||||||
|
default = environment.config._module.args.name;
|
||||||
|
defaultText = "name of the environment";
|
||||||
|
};
|
||||||
resources = mkOption {
|
resources = mkOption {
|
||||||
description = ''
|
description = ''
|
||||||
Resources made available by the hosting provider, and their policies.
|
Resources made available by the hosting provider, and their policies.
|
||||||
|
|
Loading…
Add table
Reference in a new issue