mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
15 lines
303 B
Nix
15 lines
303 B
Nix
{ config, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
options.kw = {
|
|
secrets = mkOption {
|
|
type = types.nullOr (types.listOf types.str);
|
|
default = null;
|
|
};
|
|
};
|
|
config = mkIf (config.kw.secrets != null) {
|
|
deploy.tf.variables = genAttrs config.kw.secrets (n: { externalSecret = true; });
|
|
};
|
|
}
|