From 2bb9ac64423daf473876bd5c2bfa3d7015c66f86 Mon Sep 17 00:00:00 2001 From: Tobi Bleiker Date: Fri, 19 Apr 2024 22:16:18 +0200 Subject: [PATCH 1/2] znapzend: add --mailErrorSummaryTo --- nixos/modules/services/backup/znapzend.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/nixos/modules/services/backup/znapzend.nix b/nixos/modules/services/backup/znapzend.nix index 71e5977c4464..a97b33ac1f31 100644 --- a/nixos/modules/services/backup/znapzend.nix +++ b/nixos/modules/services/backup/znapzend.nix @@ -315,6 +315,14 @@ in ''; }; + mailErrorSummaryTo = mkOption { + type = str; + default = ""; + description = lib.mdDoc '' + 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}"; From 3accf6d393ba63805c9545fbd741d15ff933bb83 Mon Sep 17 00:00:00 2001 From: Tobi Bleiker Date: Wed, 1 May 2024 09:51:09 +0200 Subject: [PATCH 2/2] znapzend: update declarations for --mailErrorSummaryTo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Janne Heß --- nixos/modules/services/backup/znapzend.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/backup/znapzend.nix b/nixos/modules/services/backup/znapzend.nix index a97b33ac1f31..7f2c89edbf37 100644 --- a/nixos/modules/services/backup/znapzend.nix +++ b/nixos/modules/services/backup/znapzend.nix @@ -316,9 +316,9 @@ in }; mailErrorSummaryTo = mkOption { - type = str; + type = singleLineStr; default = ""; - description = lib.mdDoc '' + description = '' Email address to send a summary to if "send task(s) failed". ''; };