email: add fastmail account

This commit is contained in:
Jez Cope 2022-09-26 14:57:49 +01:00
parent d2f91599ec
commit 990bc74ff0
2 changed files with 22 additions and 1 deletions

View File

@ -5,7 +5,7 @@ let
realName = nixosConfig.users.users.jez.description;
in {
accounts.email.accounts.main = rec {
primary = true;
#primary = true;
inherit realName;
inherit (params.main) address userName passwordCommand aliases;
@ -31,6 +31,27 @@ in {
msmtp.enable = true;
};
accounts.email.accounts.fm = rec {
primary = true;
inherit realName;
inherit (params.fm) address userName passwordCommand aliases;
imap = { host = params.fm.host.imap; };
smtp = { host = params.fm.host.smtp; };
mu.enable = true;
mbsync = {
enable = true;
create = "both";
remove = "both";
expunge = "both";
flatten = ".";
patterns = [ "*" ];
extraConfig.channel = { CopyArrivalDate = "yes"; };
};
msmtp.enable = true;
};
accounts.email.accounts.protonmail = rec {
inherit realName;
inherit (params.protonmail) address userName passwordCommand;

Binary file not shown.