ssmtp: add 'root' option

Changed files
+10
nixos
modules
programs
+10
nixos/modules/programs/ssmtp.nix
···
'';
};
+
root = mkOption {
+
type = types.str;
+
default = "";
+
example = "root@example.org";
+
description = ''
+
The e-mail to which mail for users with UID < 1000 is forwarded.
+
'';
+
};
+
domain = mkOption {
type = types.str;
default = "";
···
''
MailHub=${cfg.hostName}
FromLineOverride=YES
+
${if cfg.root != "" then "root=${cfg.root}" else ""}
${if cfg.domain != "" then "rewriteDomain=${cfg.domain}" else ""}
UseTLS=${if cfg.useTLS then "YES" else "NO"}
UseSTARTTLS=${if cfg.useSTARTTLS then "YES" else "NO"}