diff --git a/modules/programs/alot-accounts.nix b/modules/programs/alot-accounts.nix index ad7be0d8..783b29b6 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 5647a5ad..7599c5e0 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. '';