diff options
author | Ryan Lahfa <masterancpp@gmail.com> | 2023-01-15 17:59:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-15 17:59:00 +0100 |
commit | f8dd03989e793a6800503884763271c0db113245 (patch) | |
tree | 8869e5b2469c7664543b3ff1ef02a4aec07dcd96 | |
parent | 03c1550bbedb4ad617fceaa5a2c95e996fc7fed4 (diff) | |
parent | 5703c16118bae68772cf1529c2a8441748d823af (diff) | |
download | nixlib-f8dd03989e793a6800503884763271c0db113245.tar nixlib-f8dd03989e793a6800503884763271c0db113245.tar.gz nixlib-f8dd03989e793a6800503884763271c0db113245.tar.bz2 nixlib-f8dd03989e793a6800503884763271c0db113245.tar.lz nixlib-f8dd03989e793a6800503884763271c0db113245.tar.xz nixlib-f8dd03989e793a6800503884763271c0db113245.tar.zst nixlib-f8dd03989e793a6800503884763271c0db113245.zip |
Merge pull request #208038 from SuperSandro2000/uptime-kuma-apprise
nixos/uptime-kuma: add option to enable apprise support
-rw-r--r-- | nixos/modules/services/monitoring/uptime-kuma.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/nixos/modules/services/monitoring/uptime-kuma.nix b/nixos/modules/services/monitoring/uptime-kuma.nix index 8e6c825b35ea..3dfbfe3652cf 100644 --- a/nixos/modules/services/monitoring/uptime-kuma.nix +++ b/nixos/modules/services/monitoring/uptime-kuma.nix @@ -18,9 +18,10 @@ in description = lib.mdDoc "Uptime Kuma package to use."; }; + appriseSupport = mkEnableOption (mdDoc "apprise support for notifications."); + settings = lib.mkOption { - type = - lib.types.submodule { freeformType = with lib.types; attrsOf str; }; + type = lib.types.submodule { freeformType = with lib.types; attrsOf str; }; default = { }; example = { PORT = "4000"; @@ -47,6 +48,7 @@ in after = [ "network.target" ]; wantedBy = [ "multi-user.target" ]; environment = cfg.settings; + path = lib.mkIf cfg.appriseSupport (with pkgs; [ apprise ]); serviceConfig = { Type = "simple"; StateDirectory = "uptime-kuma"; |