mirror of
https://codeberg.org/icewind/rss-webhook-trigger.git
synced 2026-06-03 18:04:09 +02:00
document flake
This commit is contained in:
parent
52e50df8cd
commit
b322a2afaf
1 changed files with 31 additions and 0 deletions
31
README.md
31
README.md
|
|
@ -34,3 +34,34 @@ body = { event_type = "build" }
|
||||||
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 ...
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
```
|
||||||
Loading…
Add table
Add a link
Reference in a new issue