services.webhook.hooksTemplated
NixOS option
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 stringDefault
{ }Example
declared in: nixos/modules/services/networking/webhook.nixView source on NixOS/nixpkgs →{
echo-template = ''
{
"id": "echo-template",
"execute-command": "echo",
"response-message": "{{ getenv "MESSAGE" }}"
}
'';
}