2024-01-17 17:00:30 +00:00
|
|
|
{ config, lib, ... }:
|
2023-09-06 14:09:43 +00:00
|
|
|
{
|
2023-09-27 19:26:58 +00:00
|
|
|
options.clan.password-store.targetDirectory = lib.mkOption {
|
|
|
|
type = lib.types.path;
|
|
|
|
default = "/etc/secrets";
|
|
|
|
description = ''
|
|
|
|
The directory where the password store is uploaded to.
|
|
|
|
'';
|
|
|
|
};
|
2023-09-06 14:09:43 +00:00
|
|
|
config = lib.mkIf (config.clanCore.secretStore == "password-store") {
|
2023-09-27 19:26:58 +00:00
|
|
|
clanCore.secretsDirectory = config.clan.password-store.targetDirectory;
|
2023-09-29 16:30:11 +00:00
|
|
|
clanCore.secretsUploadDirectory = config.clan.password-store.targetDirectory;
|
2024-01-17 17:00:30 +00:00
|
|
|
system.clan.secretsModule = "clan_cli.secrets.modules.password_store";
|
2023-09-06 14:09:43 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|