mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
Secrets... abstractions
This commit is contained in:
parent
05696b3aea
commit
aecc7fa78d
5 changed files with 40 additions and 0 deletions
15
config/modules/nixos/secrets.nix
Normal file
15
config/modules/nixos/secrets.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{ 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; });
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue