mirror of
https://github.com/Mic92/sops-nix.git
synced 2024-12-14 11:57:52 +00:00
modules/sops/templates: Support custom files as secret templates
This exposes the `file` option, which can be used with `pkgs.formats` to write additional configuration formats.
This commit is contained in:
parent
acfcce2a36
commit
fbec55367f
1 changed files with 4 additions and 2 deletions
|
@ -56,8 +56,10 @@ in {
|
||||||
file = mkOption {
|
file = mkOption {
|
||||||
type = types.path;
|
type = types.path;
|
||||||
default = pkgs.writeText config.name config.content;
|
default = pkgs.writeText config.name config.content;
|
||||||
visible = false;
|
defaultText = ''pkgs.writeText config.name config.content'';
|
||||||
readOnly = true;
|
description = ''
|
||||||
|
File used as the template.
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}));
|
}));
|
||||||
|
|
Loading…
Reference in a new issue