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:
nescias 2026-02-01 15:56:57 +00:00 committed by Austin Horstman
parent 2cc195b478
commit 258db1d39b

View file

@ -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}>";
}