Unverified Commit f8dd0398 authored by Ryan Lahfa's avatar Ryan Lahfa Committed by GitHub
Browse files

Merge pull request #208038 from SuperSandro2000/uptime-kuma-apprise

nixos/uptime-kuma: add option to enable apprise support
parents 03c1550b 5703c161
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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";