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;
|
cfg = config.krebs.secret;
|
||||||
in {
|
in {
|
||||||
options.krebs.secret = {
|
options.krebs.secret = {
|
||||||
|
directory = mkOption {
|
||||||
|
default = toString <secrets>;
|
||||||
|
type = types.absolute-pathname;
|
||||||
|
};
|
||||||
|
file = mkOption {
|
||||||
|
default = relpath: "${cfg.directory}/${relpath}";
|
||||||
|
readOnly = true;
|
||||||
|
};
|
||||||
files = mkOption {
|
files = mkOption {
|
||||||
type = with types; attrsOf secret-file;
|
type = with types; attrsOf secret-file;
|
||||||
default = {};
|
default = {};
|
||||||
|
Loading…
Reference in New Issue
Block a user