Merge pull request #305386 from tbleiker/znapzend

znapzend: add --mailErrorSummaryTo

authored by Janne Heß and committed by GitHub 9ee8e1ef 43e297e1

+10
+10
nixos/modules/services/backup/znapzend.nix
··· 315 315 ''; 316 316 }; 317 317 318 + mailErrorSummaryTo = mkOption { 319 + type = singleLineStr; 320 + default = ""; 321 + description = '' 322 + Email address to send a summary to if "send task(s) failed". 323 + ''; 324 + }; 325 + 318 326 noDestroy = mkOption { 319 327 type = bool; 320 328 default = false; ··· 455 463 "--loglevel=${cfg.logLevel}" 456 464 (optionalString cfg.noDestroy "--nodestroy") 457 465 (optionalString cfg.autoCreation "--autoCreation") 466 + (optionalString (cfg.mailErrorSummaryTo != "") 467 + "--mailErrorSummaryTo=${cfg.mailErrorSummaryTo}") 458 468 (optionalString (enabledFeatures != []) 459 469 "--features=${concatStringsSep "," enabledFeatures}") 460 470 ]; in "${pkgs.znapzend}/bin/znapzend ${args}";