38 lines
982 B
Nix

{config, ...}: {
accounts.email = {
maildirBasePath = "Mail";
accounts."lucien@phundrak.com" = {
realName = "Lucien Cartier-Tilet";
address = "lucien@phundrak.com";
aliases = [
"lucien@cartier-tilet.com"
"admin@phundrak.com"
"webmaster@phundrak.com"
"youdontknow@phundrak.com"
];
passwordCommand = "cat ${config.sops.secrets.emailPassword.path}";
signature = {
text = ''
Lucien Phundrak Cartier-Tilet
https://phundrak.com (Français)
https://phundrak.com/en (English)
Sent from GNU/Emacs
'';
showSignature = "append";
};
userName = "lucien@phundrak.com";
imap.host = "mail.phundrak.com";
smtp.host = "mail.phundrak.com";
mu.enable = true;
primary = true;
mbsync = {
create = "maildir";
enable = true;
expunge = "both";
remove = "both";
};
};
};
}