remove some references to config in options

This commit is contained in:
DavHau
2025-04-03 17:22:03 +07:00
parent e897399e34
commit a88167f456
11 changed files with 28 additions and 6 deletions

View File

@@ -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;