config-perso/modules/mail.nix

150 lines
3.7 KiB
Nix
Raw Normal View History

2024-05-14 19:21:19 +02:00
{ pkgs, config, ... }:
{
2024-05-14 13:48:01 +02:00
programs.aerc = {
extraConfig.general.unsafe-accounts-conf = true;
2024-03-22 14:24:31 +01:00
enable = true;
};
accounts.email.accounts =
2024-05-14 19:21:19 +02:00
let
aerc = {
enable = true;
};
in
{
"ens" = {
primary = true;
inherit aerc;
address = "lubin.bailly@ens.psl.eu";
realName = "Lubin Bailly";
userName = "lbailly";
signature = {
delimiter = "--";
showSignature = "append";
text = "Lubin Bailly";
};
passwordCommand = "cat /run/agenix/clipper";
imap = {
host = "clipper.ens.psl.eu";
port = 993;
tls.enable = true;
};
smtp = {
host = "clipper.ens.psl.eu";
port = 465;
tls.enable = true;
};
};
"katmail" = {
inherit aerc;
address = "catvayor@katvayor.net";
realName = "catvayor";
userName = "catvayor@katvayor.net";
signature = {
delimiter = "--";
showSignature = "append";
text = "catvayor";
};
passwordCommand = "cat /run/agenix/mails-kat";
imap = {
host = "ssl0.ovh.net";
port = 993;
tls.enable = true;
};
smtp = {
host = "ssl0.ovh.net";
port = 465;
tls.enable = true;
};
};
"dgnum" = {
inherit aerc;
address = "catvayor@dgnum.eu";
realName = "catvayor";
userName = "catvayor@dgnum.eu";
signature = {
delimiter = "--";
showSignature = "append";
text = "catvayor";
};
passwordCommand = "cat /run/agenix/mails-dgnum";
imap = {
host = "kurisu.lahfa.xyz";
port = 993;
tls.enable = true;
};
smtp = {
host = "kurisu.lahfa.xyz";
port = 587;
tls.enable = true;
tls.useStartTls = true;
};
};
"gmail.geek" = {
inherit aerc;
address = "lubin.geek@gmail.com";
realName = "Lubin Bailly";
userName = "lubin.geek@gmail.com";
signature = {
delimiter = "--";
showSignature = "append";
text = "Lubin Bailly";
};
passwordCommand = "cat /run/agenix/geek.gle";
imap = {
host = "imap.gmail.com";
port = 993;
tls.enable = true;
};
smtp = {
host = "smtp.gmail.com";
port = 465;
tls.enable = true;
};
};
"gmail.pro" = {
inherit aerc;
address = "lubin.bailly@gmail.com";
realName = "Lubin Bailly";
userName = "lubin.bailly@gmail.com";
signature = {
delimiter = "--";
showSignature = "append";
text = "Lubin Bailly";
};
passwordCommand = "cat /run/agenix/pro.gle";
imap = {
host = "imap.gmail.com";
port = 993;
tls.enable = true;
};
smtp = {
host = "smtp.gmail.com";
port = 465;
tls.enable = true;
};
};
"laposte" = {
inherit aerc;
address = "lubin-bailly@laposte.net";
realName = "Lubin Bailly";
userName = "lubin-bailly";
signature = {
delimiter = "--";
showSignature = "append";
text = "Lubin Bailly";
};
passwordCommand = "cat /run/agenix/mails-laposte";
imap = {
host = "imap.laposte.net";
port = 993;
tls.enable = true;
};
smtp = {
host = "smtp.laposte.net";
port = 465;
tls.enable = true;
};
2024-03-22 14:24:31 +01:00
};
};
}