clippy, interal nix option

This commit is contained in:
Robin Appelman 2026-11-04 01:16:45 +01:00
commit 7821076b15
Signed by: robin
SSH key fingerprint: SHA256:kifqgrqnut7q1YUIrI0AdMNC23qiKAS/T9uGFmIYvbE
3 changed files with 21 additions and 15 deletions

View file

@ -8,13 +8,19 @@ with lib; let
cfg = config.services.rss-webhook-trigger;
format = pkgs.formats.toml {};
configFile = format.generate "trigger.toml" {
inherit (cfg) jwt interval;
feed = cfg.hooks;
jwt = cfg.jwt;
};
in {
options.services.rss-webhook-trigger = {
enable = mkEnableOption "Enables the rss-webhook-trigger service";
interval = mkOption {
type = types.int;
default = 1800;
description = "how often to check the feeds for updates";
};
jwt = mkOption {
description = "Configuration for generating JWT authorization tokens";
type = types.nullOr (types.submodule {