diff options
author | tv <tv@krebsco.de> | 2020-10-14 12:18:59 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2020-10-14 12:18:59 +0200 |
commit | 7dfc0f431f2bd87fa4656e1940e6330172d81720 (patch) | |
tree | 00cf72afccf79bd24d67ebfc11ded864a765eb6f /krebs/3modules | |
parent | 132549cded87755018df77b9c18e68d083cee4ca (diff) |
krebs.secret: add directory and file options
Diffstat (limited to 'krebs/3modules')
-rw-r--r-- | krebs/3modules/secret.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/krebs/3modules/secret.nix b/krebs/3modules/secret.nix index 67454d1f7..978939f69 100644 --- a/krebs/3modules/secret.nix +++ b/krebs/3modules/secret.nix @@ -3,6 +3,14 @@ with import <stockholm/lib>; cfg = config.krebs.secret; in { options.krebs.secret = { + directory = mkOption { + default = toString <secrets>; + type = types.absolute-pathname; + }; + file = mkOption { + default = relpath: "${cfg.directory}/${relpath}"; + readOnly = true; + }; files = mkOption { type = with types; attrsOf secret-file; default = {}; |