2023-09-04 08:53:41 +01:00
|
|
|
{ pkgs, hostName, ... }:
|
2023-09-02 08:41:07 +01:00
|
|
|
|
|
|
|
{
|
2023-09-14 11:56:26 +01:00
|
|
|
accounts.email.accounts = let realName = "Evelyn Litherland-Smith";
|
2023-09-14 08:30:55 +01:00
|
|
|
in {
|
|
|
|
proton = let
|
|
|
|
host = "127.0.0.1";
|
|
|
|
tls.enable = false;
|
|
|
|
in rec {
|
2023-09-14 11:56:26 +01:00
|
|
|
inherit realName;
|
2023-09-14 08:30:55 +01:00
|
|
|
maildir.path = "Proton";
|
|
|
|
imap = {
|
|
|
|
inherit host tls;
|
|
|
|
port = 1143;
|
|
|
|
};
|
|
|
|
smtp = {
|
|
|
|
inherit host tls;
|
|
|
|
port = 1025;
|
|
|
|
};
|
|
|
|
address = "e.litherlandsmith@proton.me";
|
|
|
|
aliases = [ "evie@xenia.me.uk" "evie@litherlandsmith.slmail.me" ];
|
|
|
|
passwordCommand = "${pkgs.pass}/bin/pass show Mail/Proton/${hostName}";
|
|
|
|
primary = true;
|
|
|
|
userName = address;
|
|
|
|
mbsync = {
|
|
|
|
enable = true;
|
|
|
|
create = "both";
|
|
|
|
expunge = "both";
|
2023-09-17 08:55:02 +01:00
|
|
|
patterns =
|
|
|
|
[ "INBOX" "Archive" "Drafts" "Sent" "Spam" "Starred" "Trash" ];
|
2023-09-14 08:30:55 +01:00
|
|
|
subFolders = "Verbatim";
|
|
|
|
extraConfig.account.AuthMechs = "LOGIN";
|
|
|
|
};
|
|
|
|
msmtp = {
|
|
|
|
enable = true;
|
|
|
|
extraConfig = {
|
|
|
|
tls = "off";
|
|
|
|
auth = "login";
|
|
|
|
};
|
|
|
|
};
|
2023-09-14 17:09:21 +01:00
|
|
|
mu.enable = true;
|
2023-09-14 08:30:55 +01:00
|
|
|
};
|
|
|
|
icloud = rec {
|
2023-09-14 11:56:26 +01:00
|
|
|
inherit realName;
|
2023-09-14 08:30:55 +01:00
|
|
|
maildir.path = "iCloud";
|
|
|
|
imap.host = "imap.mail.me.com";
|
|
|
|
smtp.host = "smtp.mail.me.com";
|
|
|
|
address = "e.litherlandsmith@icloud.com";
|
|
|
|
passwordCommand = "${pkgs.pass}/bin/pass show Mail/iCloud/mbsync";
|
|
|
|
userName = address;
|
|
|
|
mbsync = {
|
|
|
|
enable = true;
|
|
|
|
create = "both";
|
|
|
|
expunge = "both";
|
|
|
|
subFolders = "Verbatim";
|
|
|
|
};
|
|
|
|
msmtp.enable = true;
|
2023-09-14 17:09:21 +01:00
|
|
|
mu.enable = true;
|
2023-09-14 08:30:55 +01:00
|
|
|
};
|
|
|
|
};
|
2023-09-24 07:32:32 +01:00
|
|
|
home.packages = with pkgs; [ protonmail-bridge vdirsyncer ];
|
2023-09-02 08:41:07 +01:00
|
|
|
programs = {
|
2023-09-14 11:56:26 +01:00
|
|
|
mbsync.enable = true;
|
|
|
|
msmtp.enable = true;
|
2023-09-14 08:30:55 +01:00
|
|
|
# vdirsyncer = { enable = true; };
|
2023-09-14 17:09:21 +01:00
|
|
|
mu.enable = true;
|
|
|
|
};
|
|
|
|
services.mbsync = {
|
|
|
|
enable = true;
|
|
|
|
frequency = "*-*-* *:0/15:00";
|
2023-09-02 08:41:07 +01:00
|
|
|
};
|
|
|
|
xdg.configFile."vdirsyncer/config".text =
|
|
|
|
import ./config/vdirsyncer.nix { inherit pkgs; };
|
|
|
|
}
|