mirror of
https://codeberg.org/icewind/rss-webhook-trigger.git
synced 2026-11-30 12:10:50 +01:00
clippy, interal nix option
This commit is contained in:
parent
c04a04ea29
commit
7821076b15
3 changed files with 21 additions and 15 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue