diff --git a/modules/programs/offlineimap.nix b/modules/programs/offlineimap.nix index 177c0ca5..edb6e736 100644 --- a/modules/programs/offlineimap.nix +++ b/modules/programs/offlineimap.nix @@ -65,7 +65,7 @@ let remotePassEval = let arglist = concatMapStringsSep "," (x: "'${x}'") passwordCommand; in optionalAttrs (passwordCommand != null) { - remotepasseval = ''get_pass("${name}", [${arglist}])''; + remotepasseval = ''get_pass("${name}", [${arglist}]).strip("\n")''; }; in toIni { "Account ${name}" = {