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.

(cherry picked from commit 258db1d39b)
This commit is contained in:
nescias
2026-02-01 15:56:57 +00:00
committed by github-actions[bot]
parent 0d02ec1d0a
commit e38e46c8b2

View File

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