2023-02-26 21:50:52 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
2023-04-12 14:14:47 +02:00
|
|
|
let
|
|
|
|
cfg = config.jade.desktop.mail;
|
|
|
|
imap = {
|
|
|
|
host = "imap.migadu.com";
|
|
|
|
port = 993;
|
|
|
|
};
|
|
|
|
smtp = {
|
|
|
|
host = "smtp.migadu.com";
|
|
|
|
port = 465;
|
|
|
|
tls.enable = true;
|
|
|
|
};
|
2023-02-26 21:50:52 +01:00
|
|
|
in with lib; {
|
|
|
|
options.jade.desktop.mail = {
|
|
|
|
enable = mkEnableOption "Enable thunderbird mail stuff";
|
|
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
home-manager.users.jade = { pkgs, ... }: {
|
2023-04-12 14:14:47 +02:00
|
|
|
accounts.email.accounts = {
|
|
|
|
"Jade" = rec {
|
|
|
|
inherit imap smtp;
|
|
|
|
address = "jade@schrottkatze.de";
|
|
|
|
userName = address;
|
|
|
|
realName = "Jade";
|
|
|
|
thunderbird.enable = true;
|
|
|
|
primary = true;
|
|
|
|
};
|
|
|
|
"Logins" = rec {
|
|
|
|
inherit imap smtp;
|
|
|
|
address = "logins@schrottkatze.de";
|
|
|
|
userName = address;
|
|
|
|
realName = "Logins";
|
|
|
|
thunderbird.enable = true;
|
|
|
|
};
|
|
|
|
"Contact" = rec {
|
|
|
|
inherit imap smtp;
|
|
|
|
address = "contact@schrottkatze.de";
|
|
|
|
userName = address;
|
|
|
|
realName = "Jade";
|
|
|
|
thunderbird.enable = true;
|
|
|
|
};
|
|
|
|
"Schule" = rec {
|
|
|
|
inherit imap smtp;
|
|
|
|
address = "schule@schrottkatze.de";
|
|
|
|
userName = address;
|
|
|
|
realName = "Jade";
|
|
|
|
thunderbird.enable = true;
|
|
|
|
};
|
|
|
|
"Admin" = rec {
|
|
|
|
inherit imap smtp;
|
|
|
|
address = "admin@schrottkatze.de";
|
|
|
|
userName = address;
|
|
|
|
realName = "admin";
|
|
|
|
thunderbird.enable = true;
|
|
|
|
};
|
|
|
|
"CatchAll" = rec {
|
|
|
|
inherit imap smtp;
|
|
|
|
address = "catchall@schrottkatze.de";
|
|
|
|
userName = address;
|
|
|
|
realName = "Catch all";
|
|
|
|
thunderbird.enable = true;
|
|
|
|
};
|
|
|
|
};
|
2023-02-26 21:50:52 +01:00
|
|
|
programs.thunderbird = {
|
|
|
|
enable = true;
|
|
|
|
profiles.jade = {
|
|
|
|
isDefault = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|