Unverified Commit 9ee8e1ef authored by Janne Heß's avatar Janne Heß Committed by GitHub
Browse files

Merge pull request #305386 from tbleiker/znapzend

znapzend: add --mailErrorSummaryTo
parents 43e297e1 3accf6d3
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -315,6 +315,14 @@ in
        '';
      };

      mailErrorSummaryTo = mkOption {
        type = singleLineStr;
        default = "";
        description = ''
          Email address to send a summary to if "send task(s) failed".
        '';
      };

      noDestroy = mkOption {
        type = bool;
        default = false;
@@ -455,6 +463,8 @@ in
              "--loglevel=${cfg.logLevel}"
              (optionalString cfg.noDestroy "--nodestroy")
              (optionalString cfg.autoCreation "--autoCreation")
              (optionalString (cfg.mailErrorSummaryTo != "")
                "--mailErrorSummaryTo=${cfg.mailErrorSummaryTo}")
              (optionalString (enabledFeatures != [])
                "--features=${concatStringsSep "," enabledFeatures}")
            ]; in "${pkgs.znapzend}/bin/znapzend ${args}";