krebs.secret: add directory and file options
This commit is contained in:
parent
132549cded
commit
7dfc0f431f
@ -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 = {};
|
||||
|
Loading…
Reference in New Issue
Block a user