1
0
Fork 0
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:
Quentin Smith 2024-02-16 19:27:07 -05:00 committed by mergify[bot]
parent acfcce2a36
commit fbec55367f

View file

@ -56,8 +56,10 @@ in {
file = mkOption {
type = types.path;
default = pkgs.writeText config.name config.content;
visible = false;
readOnly = true;
defaultText = ''pkgs.writeText config.name config.content'';
description = ''
File used as the template.
'';
};
};
}));