diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/programs/git.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/modules/programs/git.nix b/modules/programs/git.nix index a174fa0c4ee..312269de316 100644 --- a/modules/programs/git.nix +++ b/modules/programs/git.nix @@ -277,7 +277,14 @@ in { genIdentity = name: account: with account; nameValuePair "sendemail.${name}" ({ - smtpEncryption = if smtp.tls.enable then "tls" else ""; + smtpEncryption = if smtp.tls.enable then + (if smtp.tls.useStartTls + || versionOlder config.home.stateVersion "20.09" then + "tls" + else + "ssl") + else + ""; smtpServer = smtp.host; smtpUser = userName; from = address; |