2024-05-18 21:20:50 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: let
|
2024-05-20 21:15:16 +02:00
|
|
|
cfg = config.myConfig.programs.thunderbird;
|
2024-05-18 21:20:50 +02:00
|
|
|
in {
|
2024-05-20 21:15:16 +02:00
|
|
|
options.myConfig.programs.thunderbird = {
|
|
|
|
enable = lib.mkEnableOption "thunderbird, a email client";
|
2024-05-18 21:20:50 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
accounts.email.accounts = {
|
|
|
|
"google max" = {
|
|
|
|
address = "max.kaenner@gmail.com";
|
|
|
|
userName = "max.kaenner@gmail.com";
|
|
|
|
realName = "Max Känner";
|
|
|
|
flavor = "gmail.com";
|
|
|
|
thunderbird = {
|
2024-03-10 13:01:38 +01:00
|
|
|
enable = true;
|
2024-05-18 21:20:50 +02:00
|
|
|
settings = id: {
|
|
|
|
"mail.smtpserver.smtp_${id}.authMethod" = 10;
|
|
|
|
"mail.server.server_${id}.authMethod" = 10;
|
|
|
|
};
|
2024-03-10 13:01:38 +01:00
|
|
|
};
|
2024-05-18 21:20:50 +02:00
|
|
|
primary = true;
|
2024-03-10 13:01:38 +01:00
|
|
|
};
|
2024-05-18 21:20:50 +02:00
|
|
|
"google informatiker" = {
|
|
|
|
address = "kaenner9@gmail.com";
|
|
|
|
userName = "kaenner9@gmail.com";
|
|
|
|
realName = "Max Känner";
|
|
|
|
flavor = "gmail.com";
|
|
|
|
thunderbird = {
|
2024-03-10 13:01:38 +01:00
|
|
|
enable = true;
|
2024-05-18 21:20:50 +02:00
|
|
|
settings = id: {
|
|
|
|
"mail.smtpserver.smtp_${id}.authMethod" = 10;
|
|
|
|
"mail.server.server_${id}.authMethod" = 10;
|
|
|
|
};
|
2024-03-10 13:01:38 +01:00
|
|
|
};
|
|
|
|
};
|
2024-05-18 21:20:50 +02:00
|
|
|
"uni" = {
|
|
|
|
address = "max.kaenner@stud.uni-hannover.de";
|
|
|
|
userName = "max.kaenner@stud.uni-hannover.de";
|
|
|
|
realName = "Max Känner";
|
|
|
|
imap = {
|
|
|
|
host = "mail.stud.uni-hannover.de";
|
|
|
|
port = 993;
|
|
|
|
tls = {
|
|
|
|
enable = true;
|
|
|
|
useStartTls = false;
|
|
|
|
};
|
2024-03-10 13:18:10 +01:00
|
|
|
};
|
2024-05-18 21:20:50 +02:00
|
|
|
smtp = {
|
|
|
|
host = "smtp.uni-hannover.de";
|
|
|
|
port = 587;
|
|
|
|
tls = {
|
|
|
|
enable = true;
|
|
|
|
useStartTls = true;
|
|
|
|
};
|
2024-03-10 13:18:10 +01:00
|
|
|
};
|
2024-05-18 21:20:50 +02:00
|
|
|
thunderbird.enable = true;
|
2024-03-10 13:18:10 +01:00
|
|
|
};
|
2024-05-18 21:20:50 +02:00
|
|
|
"luhbots" = {
|
|
|
|
address = "max.kaenner@luhbots.de";
|
|
|
|
userName = "max.kaenner@luhbots.de";
|
|
|
|
realName = "Max Känner";
|
|
|
|
imap = {
|
|
|
|
host = "luhbots.de";
|
|
|
|
port = 993;
|
|
|
|
tls = {
|
|
|
|
enable = true;
|
|
|
|
useStartTls = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
smtp = {
|
|
|
|
host = "luhbots.de";
|
|
|
|
port = 587;
|
|
|
|
tls = {
|
|
|
|
enable = true;
|
|
|
|
useStartTls = true;
|
|
|
|
};
|
2024-03-10 13:18:10 +01:00
|
|
|
};
|
2024-05-18 21:20:50 +02:00
|
|
|
thunderbird.enable = true;
|
2024-03-10 13:18:10 +01:00
|
|
|
};
|
2024-05-18 21:20:50 +02:00
|
|
|
"gymstolz" = {
|
|
|
|
address = "max.kaenner@gym-stolz.de";
|
|
|
|
userName = "max.kaenner";
|
|
|
|
realName = "Max Känner";
|
|
|
|
imap = {
|
|
|
|
host = "gym-stolz.de";
|
|
|
|
port = 143;
|
|
|
|
tls = {
|
|
|
|
enable = true;
|
|
|
|
useStartTls = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
smtp = {
|
|
|
|
host = "gym-stolz.de";
|
|
|
|
port = 587;
|
|
|
|
tls = {
|
|
|
|
enable = true;
|
|
|
|
useStartTls = true;
|
|
|
|
};
|
2024-03-10 13:01:38 +01:00
|
|
|
};
|
2024-05-18 21:20:50 +02:00
|
|
|
thunderbird.enable = true;
|
2024-03-10 13:01:38 +01:00
|
|
|
};
|
|
|
|
};
|
2024-03-10 13:10:02 +01:00
|
|
|
|
2024-05-18 21:20:50 +02:00
|
|
|
programs.thunderbird = {
|
|
|
|
enable = true;
|
|
|
|
profiles.default = {
|
|
|
|
isDefault = true;
|
|
|
|
};
|
2024-03-10 13:10:02 +01:00
|
|
|
};
|
|
|
|
};
|
2024-03-10 13:01:38 +01:00
|
|
|
}
|