nix/modules/programs/home/mail/default.nix

60 lines
1.2 KiB
Nix
Raw Normal View History

2024-10-12 21:12:58 +02:00
let
muttrc = builtins.readFile (./. + "/muttrc");
in {
accounts.email.accounts = {
"mail@joygnu.org" = {
imap.port = 993;
mbsync.enable = true;
mbsync.create = "both";
neomutt = {
enable = true;
extraMailboxes = [
{mailbox = "Sent";}
{mailbox = "Junk";}
{mailbox = "Trash";}
{mailbox = "Drafts";}
];
};
};
"spyware@joygnu.org" = {
imap.port = 993;
mbsync.enable = true;
mbsync.create = "both";
neomutt = {
enable = true;
extraMailboxes = [
{mailbox = "Sent";}
{mailbox = "Junk";}
{mailbox = "Trash";}
{mailbox = "Drafts";}
];
};
};
"contact@joygnu.org" = {
imap.port = 993;
mbsync.enable = true;
mbsync.create = "both";
neomutt = {
enable = true;
extraMailboxes = [
{mailbox = "Sent";}
{mailbox = "Junk";}
{mailbox = "Trash";}
{mailbox = "Drafts";}
];
};
};
};
programs.mbsync = {
enable = true;
};
programs.neomutt = {
enable = true;
2024-10-17 23:05:33 +02:00
editor = "hx";
2024-10-12 21:12:58 +02:00
extraConfig = muttrc;
};
imports = [./accounts.nix];
}