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 ''; 316 }; 317 318 noDestroy = mkOption { 319 type = bool; 320 default = false; ··· 455 "--loglevel=${cfg.logLevel}" 456 (optionalString cfg.noDestroy "--nodestroy") 457 (optionalString cfg.autoCreation "--autoCreation") 458 (optionalString (enabledFeatures != []) 459 "--features=${concatStringsSep "," enabledFeatures}") 460 ]; in "${pkgs.znapzend}/bin/znapzend ${args}";
··· 315 ''; 316 }; 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 + 326 noDestroy = mkOption { 327 type = bool; 328 default = false; ··· 463 "--loglevel=${cfg.logLevel}" 464 (optionalString cfg.noDestroy "--nodestroy") 465 (optionalString cfg.autoCreation "--autoCreation") 466 + (optionalString (cfg.mailErrorSummaryTo != "") 467 + "--mailErrorSummaryTo=${cfg.mailErrorSummaryTo}") 468 (optionalString (enabledFeatures != []) 469 "--features=${concatStringsSep "," enabledFeatures}") 470 ]; in "${pkgs.znapzend}/bin/znapzend ${args}";