diff --git a/nixos/email-accounts.nix b/nixos/email-accounts.nix index 4bf67ed7..39c67a03 100644 --- a/nixos/email-accounts.nix +++ b/nixos/email-accounts.nix @@ -26,10 +26,20 @@ create = "maildir"; }; folders = { - drafts = "drafts"; - inbox = "inbox"; - sent = "sent"; - trash = "trash"; + drafts = "Drafts"; + inbox = "INBOX"; + sent = "Sent"; + trash = "Trash"; + }; + }; + + services = { + imapnotify.enable = true; + + mbsync = { + enable = true; + frequency = "hourly"; + postExec = "${pkgs.notmuch}/bin/notmuch new"; }; }; @@ -59,6 +69,8 @@ hydroxide ]; + + systemd.user.services."hydroxide" = { Unit.Description = "Bridge to ProtonMail"; Install.WantedBy = [ "default.target" ];