core password-store: define fileModule only if file is secret
This commit is contained in:
@@ -43,9 +43,11 @@ in
|
|||||||
clan.core.vars.settings =
|
clan.core.vars.settings =
|
||||||
lib.mkIf (config.clan.core.vars.settings.secretStore == "password-store")
|
lib.mkIf (config.clan.core.vars.settings.secretStore == "password-store")
|
||||||
{
|
{
|
||||||
fileModule = file: {
|
fileModule =
|
||||||
path = "/run/secrets/${file.config.generatorName}/${file.config.name}";
|
file:
|
||||||
};
|
lib.mkIf file.config.secret {
|
||||||
|
path = "/run/secrets/${file.config.generatorName}/${file.config.name}";
|
||||||
|
};
|
||||||
secretUploadDirectory = lib.mkDefault "/etc/secret-vars";
|
secretUploadDirectory = lib.mkDefault "/etc/secret-vars";
|
||||||
secretModule = "clan_cli.vars.secret_modules.password_store";
|
secretModule = "clan_cli.vars.secret_modules.password_store";
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user