initial jwt support

This commit is contained in:
Robin Appelman 2026-11-03 19:42:38 +01:00
commit 766a820f96
Signed by: robin
SSH key fingerprint: SHA256:kifqgrqnut7q1YUIrI0AdMNC23qiKAS/T9uGFmIYvbE
8 changed files with 1046 additions and 31 deletions

View file

@ -9,12 +9,26 @@ with lib; let
format = pkgs.formats.toml {};
configFile = format.generate "trigger.toml" {
feed = cfg.hooks;
jwt = cfg.jwt;
};
in {
options.services.rss-webhook-trigger = {
enable = mkEnableOption "Enables the rss-webhook-trigger service";
hooks = mkOption rec {
jwt = mkOption {
description = "Configuration for generating JWT authorization tokens";
type = types.nullOr (types.submodule {
options = {
secret = mkOption {
type = types.str;
description = "JWT secret";
};
};
});
default = null;
};
hooks = mkOption {
description = "Hook configuration";
type = types.listOf (types.submodule {
options = {
@ -38,6 +52,7 @@ in {
};
};
});
default = [];
};
log = mkOption {