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

ssmtp: add 'root' option

+10
+10
nixos/modules/programs/ssmtp.nix
··· 44 ''; 45 }; 46 47 domain = mkOption { 48 type = types.str; 49 default = ""; ··· 103 '' 104 MailHub=${cfg.hostName} 105 FromLineOverride=YES 106 ${if cfg.domain != "" then "rewriteDomain=${cfg.domain}" else ""} 107 UseTLS=${if cfg.useTLS then "YES" else "NO"} 108 UseSTARTTLS=${if cfg.useSTARTTLS then "YES" else "NO"}
··· 44 ''; 45 }; 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 + 56 domain = mkOption { 57 type = types.str; 58 default = ""; ··· 112 '' 113 MailHub=${cfg.hostName} 114 FromLineOverride=YES 115 + ${if cfg.root != "" then "root=${cfg.root}" else ""} 116 ${if cfg.domain != "" then "rewriteDomain=${cfg.domain}" else ""} 117 UseTLS=${if cfg.useTLS then "YES" else "NO"} 118 UseSTARTTLS=${if cfg.useSTARTTLS then "YES" else "NO"}