From 4f0b0d78af7d1d1004770e6b9202e5a74d18a55b Mon Sep 17 00:00:00 2001 From: Jos van Bakel Date: Thu, 10 Dec 2020 22:32:34 +0100 Subject: [PATCH] msmtp: fix passwordeval (#1649) --- modules/programs/msmtp.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/programs/msmtp.nix b/modules/programs/msmtp.nix index 7357b615b..f7745d33b 100644 --- a/modules/programs/msmtp.nix +++ b/modules/programs/msmtp.nix @@ -26,8 +26,7 @@ let tls_fingerprint = msmtp.tls.fingerprint; } // optionalAttrs (smtp.port != null) { port = toString smtp.port; } // optionalAttrs (passwordCommand != null) { - passwordeval = - ''${pkgs.bash}/bin/bash -c "${toString passwordCommand}"''; + passwordeval = toString passwordCommand; } // msmtp.extraConfig) ++ optional primary '' account default : ${name}'');