remove some references to config in options
This commit is contained in:
@@ -87,6 +87,7 @@
|
||||
name = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = service.config._module.args.name;
|
||||
defaultText = "attribute name of the service";
|
||||
description = ''
|
||||
Namespace of the service
|
||||
'';
|
||||
@@ -178,6 +179,7 @@
|
||||
name of the secret
|
||||
'';
|
||||
default = secret.config._module.args.name;
|
||||
defaultText = "attribute name of the secret";
|
||||
};
|
||||
path = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
@@ -185,12 +187,14 @@
|
||||
path to a secret which is generated by the generator
|
||||
'';
|
||||
default = config.clan.core.facts.secretPathFunction secret;
|
||||
defaultText = lib.literalExpression "config.clan.core.facts.secretPathFunction secret";
|
||||
};
|
||||
}
|
||||
// lib.optionalAttrs (config.clan.core.facts.secretModule == "clan_cli.facts.secret_modules.sops") {
|
||||
groups = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.str;
|
||||
default = config.clan.core.sops.defaultGroups;
|
||||
defaultText = lib.literalExpression "config.clan.core.sops.defaultGroups";
|
||||
description = ''
|
||||
Groups to decrypt the secret for. By default we always use the user's key.
|
||||
'';
|
||||
@@ -213,6 +217,7 @@
|
||||
name of the public fact
|
||||
'';
|
||||
default = fact.config._module.args.name;
|
||||
defaultText = "attribute name of the public fact";
|
||||
};
|
||||
path = lib.mkOption {
|
||||
type = lib.types.path;
|
||||
|
||||
Reference in New Issue
Block a user