diff options
author | Janne Heß <dasJ@users.noreply.github.com> | 2024-05-02 10:46:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-02 10:46:03 +0200 |
commit | 9ee8e1eff0bef65143657cf6d825ce00f8bccc35 (patch) | |
tree | 806cbf07a1ec4ce2253124566c583692e579aade | |
parent | 43e297e1d2b04b4b4796e5801bbe5786161f7338 (diff) | |
parent | 3accf6d393ba63805c9545fbd741d15ff933bb83 (diff) |
Merge pull request #305386 from tbleiker/znapzend
znapzend: add --mailErrorSummaryTo
-rw-r--r-- | nixos/modules/services/backup/znapzend.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/nixos/modules/services/backup/znapzend.nix b/nixos/modules/services/backup/znapzend.nix index 71e5977c44640..7f2c89edbf374 100644 --- a/nixos/modules/services/backup/znapzend.nix +++ b/nixos/modules/services/backup/znapzend.nix @@ -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}"; |