diff options
author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2022-12-28 00:06:42 +0100 |
---|---|---|
committer | Sandro Jäckel <sandro.jaeckel@sap.com> | 2023-01-06 16:51:18 +0100 |
commit | 5703c16118bae68772cf1529c2a8441748d823af (patch) | |
tree | a76b0fff7c605bb4ae01a9a82485dbb97251fe10 /nixos/modules/services/monitoring | |
parent | 7c782c9bc1a7db059d98d4a5e444cd9fe5079037 (diff) | |
download | nixpkgs-5703c16118bae68772cf1529c2a8441748d823af.tar nixpkgs-5703c16118bae68772cf1529c2a8441748d823af.tar.gz nixpkgs-5703c16118bae68772cf1529c2a8441748d823af.tar.bz2 nixpkgs-5703c16118bae68772cf1529c2a8441748d823af.tar.lz nixpkgs-5703c16118bae68772cf1529c2a8441748d823af.tar.xz nixpkgs-5703c16118bae68772cf1529c2a8441748d823af.tar.zst nixpkgs-5703c16118bae68772cf1529c2a8441748d823af.zip |
nixos/uptime-kuma: add option to enable apprise support
Diffstat (limited to 'nixos/modules/services/monitoring')
-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 b6dc993e6a0..fa6dc922f09 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"; |