1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-05 01:19:46 +01:00
home-manager/tests/modules/programs/mbsync/mbsync-expected.conf
David Baynard 41790ba656
mbsync: extend config type with list of strings
Some configuration options can take space separated strings; for
example `SSLVersions` can be configured with multiple allowed
versions.

    SSLVersions TLSv1.3 TLSv1.2

This can now be represented in Home Manager.

    SSLVersions = [ “TLSv1.3” “TLSv1.2” ];

In implementing this change, it uses oneOf for config type, as it is a
cleaner way to represent the union than the nested eithers
formulation.

Also add SSLVersions to test lists of strings in
`account.extraConfig`.
2022-09-20 01:24:21 +02:00

81 lines
1.9 KiB
Text

# Generated by Home Manager.
IMAPAccount hm-account
CertificateFile /etc/ssl/certs/ca-certificates.crt
Host imap.example.org
PassCmd "password-command 2"
SSLType IMAPS
User home.manager.jr
IMAPStore hm-account-remote
Account hm-account
MaildirStore hm-account-local
Inbox /home/hm-user/Mail/hm-account/Inbox
Path /home/hm-user/Mail/hm-account/
SubFolders Verbatim
Channel emptyChannels-empty1
Far :hm-account-remote:
Near :hm-account-local:
Channel emptyChannels-empty2
Far :hm-account-remote:
Near :hm-account-local:
Channel hm-account-earlierPatternMatch
Far :hm-account-remote:Label
Near :hm-account-local:SomethingUnderLabel
Pattern ThingUnderLabel !NotThisMaildirThough "[Weird] Label?"
Channel hm-account-inbox
Far :hm-account-remote:Inbox
Near :hm-account-local:Inbox
Channel hm-account-patternMatch
Far :hm-account-remote:Label
Near :hm-account-local:SomethingUnderLabel
Pattern ThingUnderLabel !NotThisMaildirThough "[Weird] Label?"
Channel hm-account-strangeHostBoxName
Far ":hm-account-remote:[Weird]/Label Mess"
Near :hm-account-local:[AnotherWeird]/Label
Group emptyChannels
Channel emptyChannels-empty1
Channel emptyChannels-empty2
Group hm-account
Channel hm-account-earlierPatternMatch
Channel hm-account-inbox
Channel hm-account-patternMatch
Channel hm-account-strangeHostBoxName
IMAPAccount hm@example.com
CertificateFile /etc/ssl/certs/ca-certificates.crt
Host imap.example.com
PassCmd password-command
SSLType IMAPS
SSLVersions TLSv1.3 TLSv1.2
User home.manager
IMAPStore hm@example.com-remote
Account hm@example.com
MaildirStore hm@example.com-local
Inbox /home/hm-user/Mail/hm@example.com/Inbox
Path /home/hm-user/Mail/hm@example.com/
SubFolders Verbatim
Channel inboxes-inbox1
Far :hm@example.com-remote:Inbox1
Near :hm@example.com-local:Inboxes
Channel inboxes-inbox2
Far :hm@example.com-remote:Inbox2
Near :hm@example.com-local:Inboxes
Group inboxes
Channel inboxes-inbox1
Channel inboxes-inbox2