git: respect programs.msmtp.package
Since the user may override `programs.msmtp.package` using `pkgs.msmtp` as the sendmail binary might result in the wrong package being used.
This commit is contained in:
parent
2cc195b478
commit
258db1d39b
1 changed files with 1 additions and 1 deletions
|
|
@ -402,7 +402,7 @@ in
|
|||
lib.nameValuePair "sendemail.${name}" (
|
||||
if account.msmtp.enable then
|
||||
{
|
||||
sendmailCmd = "${pkgs.msmtp}/bin/msmtp";
|
||||
sendmailCmd = lib.getExe config.programs.msmtp.package;
|
||||
envelopeSender = "auto";
|
||||
from = "${realName} <${address}>";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue