services.webhook.hooksTemplated
Same as hooks, but these hooks are specified as literal strings instead of Nix values,
and hence can include template syntax
which might not be representable as JSON.
Template syntax requires the enableTemplates option to be set to true, which is
done by default if this option is set.
- Type
attribute set of string- Default
{ }- Example
{ echo-template = '' { "id": "echo-template", "execute-command": "echo", "response-message": "{{ getenv "MESSAGE" }}" } ''; }- Declared
- <nixpkgs/nixos/modules/services/networking/webhook.nix>