facts password-store: take path from variable
All checks were successful
checks / checks (pull_request) Successful in 4m22s
checks / checks-impure (pull_request) Successful in 1m47s

This commit is contained in:
lassulus 2024-04-21 19:08:42 +02:00
parent 9ac0839bd5
commit 4964415d34

View File

@ -9,7 +9,8 @@
};
config = lib.mkIf (config.clanCore.facts.secretStore == "password-store") {
clanCore.facts.secretPathFunction = secret: "/etc/secrets/${secret.config.name}";
clanCore.facts.secretPathFunction =
secret: "${config.clan.password-store.targetDirectory}/${secret.config.name}";
clanCore.facts.secretUploadDirectory = config.clan.password-store.targetDirectory;
clanCore.facts.secretModule = "clan_cli.facts.secret_modules.password_store";
};