alot: change msmtp default command

This commit is contained in:
Matthieu Coudron 2018-09-30 18:34:22 +09:00 committed by Matthieu Coudron
parent 736e340bde
commit 8e798e4c28
2 changed files with 1 additions and 5 deletions

View File

@ -25,7 +25,7 @@ with lib;
config = mkIf config.notmuch.enable {
alot.sendMailCommand = mkOptionDefault (
if config.msmtp.enable
then "msmtpq --read-envelope-from --read-recipients"
then cfg.msmtp.sendCommand
else null
);
};

View File

@ -63,10 +63,6 @@ in
sendCommand = mkOption {
type = types.str;
default = "msmtpq --read-envelope-from --read-recipients";
# apply = p:
# if hasPrefix "/" p
# then p
# else "${config.home.homeDirectory}/${p}";
description = ''
Default command to use to send mail.
'';