Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/programs/mbsync.nix
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ let
genSection "IMAPAccount ${name}" ({
Host = imap.host;
User = userName;
PassCmd = lib.escapeShellArgs passwordCommand;
PassCmd = toString passwordCommand;
} // genTlsConfig imap.tls
// optionalAttrs (imap.port != null) { Port = toString imap.port; }
// mbsync.extraConfig.account) + "\n"
Expand Down
4 changes: 2 additions & 2 deletions tests/modules/programs/mbsync/mbsync-expected.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
IMAPAccount hm-account
CertificateFile /etc/ssl/certs/ca-certificates.crt
Host imap.example.org
PassCmd "'password-command' '2'"
PassCmd "password-command 2"
SSLType IMAPS
User home.manager.jr

Expand Down Expand Up @@ -55,7 +55,7 @@ Channel hm-account-strangeHostBoxName
IMAPAccount hm@example.com
CertificateFile /etc/ssl/certs/ca-certificates.crt
Host imap.example.com
PassCmd 'password-command'
PassCmd password-command
SSLType IMAPS
SSLVersions TLSv1.3 TLSv1.2
User home.manager
Expand Down