diff options
author | Preston Pan <ret2pop@gmail.com> | 2025-01-16 00:13:06 -0800 |
---|---|---|
committer | Preston Pan <ret2pop@gmail.com> | 2025-01-16 00:13:06 -0800 |
commit | 2dff9d2b61244fed49136028d0e0f6ae3ae759cf (patch) | |
tree | b94dabd4a159ed19705c109cd9047a724ddbd4e2 /nix/modules/home/mbsync.nix | |
parent | dd461e48043dabee4694e2b200f4c1d9cfdbc3d9 (diff) |
modules about done
Diffstat (limited to 'nix/modules/home/mbsync.nix')
-rw-r--r-- | nix/modules/home/mbsync.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/nix/modules/home/mbsync.nix b/nix/modules/home/mbsync.nix new file mode 100644 index 0000000..e509c27 --- /dev/null +++ b/nix/modules/home/mbsync.nix @@ -0,0 +1,31 @@ +{ lib, config, ... }: +{ + enable = lib.mkDefault config.profiles.home.email.enable; + extraConfig = '' + IMAPAccount ret2pop + Host ${config.profiles.home.email.imapsServer} + User ${config.profiles.email.email} + PassCmd "cat ${config.sops.secrets.mail.path}" + Port 993 + TLSType IMAPS + AuthMechs * + CertificateFile /etc/ssl/certs/ca-certificates.crt + + IMAPStore ret2pop-remote + Account ret2pop + + MaildirStore ret2pop-local + Path ~/email/ret2pop/ + Inbox ~/email/ret2pop/INBOX + SubFolders Verbatim + + Channel ret2pop + Far :ret2pop-remote: + Near :ret2pop-local: + Patterns * + Create Near + Sync All + Expunge None + SyncState * + ''; +} |