68 lines
1.2 KiB
Nix
68 lines
1.2 KiB
Nix
{
|
|
pkgs,
|
|
osConfig,
|
|
lib,
|
|
...
|
|
}: {
|
|
programs = {
|
|
msmtp = {
|
|
enable = true;
|
|
};
|
|
mbsync = {
|
|
enable = true;
|
|
};
|
|
afew = {
|
|
enable = true;
|
|
};
|
|
notmuch = {
|
|
enable = true;
|
|
new.tags = ["new"];
|
|
hooks = {
|
|
postNew = ''
|
|
afew --tag --new
|
|
'';
|
|
preNew = ''
|
|
mbsync -a
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
|
|
accounts = {
|
|
email = {
|
|
accounts.personal = {
|
|
primary = true;
|
|
address = "michael@michaelthomson.dev";
|
|
realName = "Michael Thomson";
|
|
userName = "michael@michaelthomson.dev";
|
|
passwordCommand = "rbw get --folder email michael@michaelthomson.dev";
|
|
mbsync = {
|
|
enable = true;
|
|
create = "both";
|
|
expunge = "both";
|
|
};
|
|
imap = {
|
|
host = "mail.michaelthomson.dev";
|
|
port = 993;
|
|
tls = {
|
|
enable = true;
|
|
};
|
|
};
|
|
msmtp = {
|
|
enable = true;
|
|
};
|
|
smtp = {
|
|
host = "mail.michaelthomson.dev";
|
|
port = 465;
|
|
tls = {
|
|
enable = true;
|
|
};
|
|
};
|
|
notmuch = {
|
|
enable = true;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|