mirror of
https://codeberg.org/icewind/rss-webhook-trigger.git
synced 2026-06-03 09:54:18 +02:00
fmt
This commit is contained in:
parent
cc1d6f7c3c
commit
a3818da108
6 changed files with 42 additions and 41 deletions
|
|
@ -4,8 +4,8 @@ Trigger webhooks from rss/atom feeds.
|
|||
|
||||
Send a `POST` request to a webhook every time an rss/atom feed changes.
|
||||
|
||||
Note that this will only detect changes made while the program is running, it is not able to detect changes made to
|
||||
the feeds on program start.
|
||||
Note that this will only detect changes made while the program is running, it is
|
||||
not able to detect changes made to the feeds on program start.
|
||||
|
||||
### Configuration
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{ dockerTools
|
||||
, rss-webhook-trigger
|
||||
,
|
||||
{
|
||||
dockerTools,
|
||||
rss-webhook-trigger,
|
||||
}:
|
||||
dockerTools.buildLayeredImage {
|
||||
name = "icewind1991/rss-webhook-trigger";
|
||||
|
|
|
|||
13
flake.nix
13
flake.nix
|
|
@ -10,13 +10,14 @@
|
|||
inputs.flakelight.follows = "flakelight";
|
||||
};
|
||||
};
|
||||
outputs = { mill-scale, ... }: mill-scale ./. {
|
||||
outputs = {mill-scale, ...}:
|
||||
mill-scale ./. {
|
||||
nixosModules = {outputs, ...}: {
|
||||
default =
|
||||
{ pkgs
|
||||
, config
|
||||
, lib
|
||||
, ...
|
||||
default = {
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
imports = [./nix/module.nix];
|
||||
config = lib.mkIf config.services.rss-webhook-trigger.enable {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
{ config
|
||||
, lib
|
||||
, pkgs
|
||||
, ...
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.services.rss-webhook-trigger;
|
||||
|
|
@ -9,8 +10,7 @@ with lib; let
|
|||
configFile = format.generate "trigger.toml" {
|
||||
feed = cfg.hooks;
|
||||
};
|
||||
in
|
||||
{
|
||||
in {
|
||||
options.services.rss-webhook-trigger = {
|
||||
enable = mkEnableOption "Enables the rss-webhook-trigger service";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{ rustPlatform
|
||||
, lib
|
||||
}:
|
||||
let
|
||||
{
|
||||
rustPlatform,
|
||||
lib,
|
||||
}: let
|
||||
inherit (lib.sources) sourceByRegex;
|
||||
inherit (builtins) fromTOML readFile;
|
||||
src = sourceByRegex ../. ["Cargo.*" "(src)(/.*)?"];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue