From 8e798e4c28bffa20b9d5f6c44fbcce6d3a3df15e Mon Sep 17 00:00:00 2001 From: Matthieu Coudron Date: Sun, 30 Sep 2018 18:34:22 +0900 Subject: [PATCH] alot: change msmtp default command --- modules/programs/alot-accounts.nix | 2 +- modules/programs/msmtp.nix | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/modules/programs/alot-accounts.nix b/modules/programs/alot-accounts.nix index ad7be0d88..783b29b6b 100644 --- a/modules/programs/alot-accounts.nix +++ b/modules/programs/alot-accounts.nix @@ -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 ); }; diff --git a/modules/programs/msmtp.nix b/modules/programs/msmtp.nix index 5647a5ad4..7599c5e0a 100644 --- a/modules/programs/msmtp.nix +++ b/modules/programs/msmtp.nix @@ -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. '';