mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
Additional secrets prefixing stuff
This commit is contained in:
parent
aecc7fa78d
commit
5dd38fac70
2 changed files with 11 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ with lib;
|
|||
options.externalSecret = mkEnableOption "Is ths secret to be templated into a command provided?";
|
||||
config = mkIf config.externalSecret {
|
||||
type = "string";
|
||||
value.shellCommand = "${tf.commandPrefix} ${escapeShellArg name}";
|
||||
value.shellCommand = "${tf.commandPrefix} ${tf.folderPrefix}${tf.folderDivider}${escapeShellArg name}";
|
||||
};
|
||||
}));
|
||||
};
|
||||
|
|
@ -17,5 +17,13 @@ with lib;
|
|||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
};
|
||||
folderPrefix = mkOption {
|
||||
type = types.str;
|
||||
default = "";
|
||||
};
|
||||
folderDivider = mkOption {
|
||||
type = types.str;
|
||||
default = "";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
{
|
||||
commandPrefix = "pass";
|
||||
folderPrefix = "secrets";
|
||||
folderDivider = "/";
|
||||
|
||||
variables.hcloud_token = {
|
||||
type = "string";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue