krebs.secret: add directory and file options

This commit is contained in:
tv 2020-10-14 12:18:59 +02:00
parent 132549cded
commit 7dfc0f431f

View File

@ -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 = {};