Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

ssmtp: add 'root' option

+10
+10
nixos/modules/programs/ssmtp.nix
··· 44 44 ''; 45 45 }; 46 46 47 + root = mkOption { 48 + type = types.str; 49 + default = ""; 50 + example = "root@example.org"; 51 + description = '' 52 + The e-mail to which mail for users with UID < 1000 is forwarded. 53 + ''; 54 + }; 55 + 47 56 domain = mkOption { 48 57 type = types.str; 49 58 default = ""; ··· 103 112 '' 104 113 MailHub=${cfg.hostName} 105 114 FromLineOverride=YES 115 + ${if cfg.root != "" then "root=${cfg.root}" else ""} 106 116 ${if cfg.domain != "" then "rewriteDomain=${cfg.domain}" else ""} 107 117 UseTLS=${if cfg.useTLS then "YES" else "NO"} 108 118 UseSTARTTLS=${if cfg.useSTARTTLS then "YES" else "NO"}