document flake

This commit is contained in:
Robin Appelman 2024-01-09 22:17:52 +01:00
commit b322a2afaf

View file

@ -33,4 +33,35 @@ body = { event_type = "build" }
[[feed]] [[feed]]
feed = "docker-hub://matrixdotorg/synapse" feed = "docker-hub://matrixdotorg/synapse"
hook = "https://hook.example.com/hook2/call" hook = "https://hook.example.com/hook2/call"
```
### Usage in NixOS
A NixOS module is included and can be used like this:
```nix
{
inputs.rss-webhook-trigger.url = "github:icewind1991/rss-webhook-trigger";
outputs = { self, nixpkgs, rss-webhook-trigger }: {
nixosConfigurations.my-machine = nixpkgs.lib.nixosSystem {
modules =
[
rss-webhook-trigger.nixosModules.default
{
services.rss-webhook-trigger = {
enable = true;
hooks = [
{
feed = "https://example.com/feed1.xml";
hook = "https://hook.example.com/hook1/call";
}
];
};
}
# ... other configuration ...
];
};
};
}
``` ```