164 lines
4.2 KiB
Nix
164 lines
4.2 KiB
Nix
{ pkgs, ... }@all: with all; lib.mkIf (hyper.isPersonal) {
|
|
accounts.email.accounts = let
|
|
OAuth2Settings = id: {
|
|
"mail.smtpserver.smtp_${id}.authMethod" = 10;
|
|
"mail.server.server_${id}.authMethod" = 10;
|
|
};
|
|
in {
|
|
gmail-online = {
|
|
address = secrets.email.gmail-online.mail;
|
|
realName = "Lennart J. Kurzweg";
|
|
flavor = "gmail.com";
|
|
primary = true;
|
|
smtp.tls.useStartTls = true;
|
|
signature = {
|
|
text = ''
|
|
About Me: https://nx2.site/about-me
|
|
Contact: https://nx2.site/contact
|
|
GPG: https://nx2.site/gpg
|
|
'';
|
|
showSignature = "append";
|
|
};
|
|
thunderbird = {
|
|
enable = true;
|
|
profiles = [ "nx2" ];
|
|
# The id given as argument is an automatically generated account identifier.
|
|
settings = OAuth2Settings;
|
|
};
|
|
};
|
|
|
|
gmail-business = {
|
|
address = secrets.email.gmail-business.mail;
|
|
realName = "Lennart J. Kurzweg";
|
|
flavor = "gmail.com";
|
|
signature = {
|
|
text = ''
|
|
About Me: https://nx2.site/about-me
|
|
Contact: https://nx2.site/contact
|
|
GPG: https://nx2.site/gpg
|
|
'';
|
|
showSignature = "append";
|
|
};
|
|
thunderbird = {
|
|
enable = true;
|
|
profiles = [ "nx2" ];
|
|
# The id given as argument is an automatically generated account identifier.
|
|
settings = OAuth2Settings;
|
|
};
|
|
};
|
|
# pnx-nix = {
|
|
# address = secrets.email.pnx.mail;
|
|
# realName = "Lennart J. Kurzweg";
|
|
# flavor = "outlook.office365.com";
|
|
# signature = {
|
|
# text = ''
|
|
# Phönix Metallbau GmbH
|
|
# Tel: 036374 2270
|
|
# '';
|
|
# showSignature = "append";
|
|
# };
|
|
# thunderbird = mkIf config.thunderbird.enable {
|
|
# enable = true;
|
|
# profiles = [ "nx2" ];
|
|
# # The id given as argument is an automatically generated account identifier.
|
|
# # settings = OAuth2Settings;
|
|
# };
|
|
# };
|
|
tuda = with secrets.email.tuda; {
|
|
address = "${un}@stud.tu-darmstadt.de";
|
|
userName = tuid;
|
|
realName = "Lennart J. Kurzweg";
|
|
imap = {
|
|
port = 993;
|
|
host = "imap.stud.tu-darmstadt.de";
|
|
};
|
|
smtp = {
|
|
port = 465;
|
|
host = "smtp.tu-darmstadt.de";
|
|
tls.enable = true;
|
|
};
|
|
signature = {
|
|
text = ''
|
|
Field: MSc. AI/ML
|
|
MNr: ${mnr}
|
|
TU-ID: ${tuid}
|
|
About Me: https://nx2.site/about-me
|
|
Contact: https://nx2.site/contact
|
|
GPG: https://nx2.site/gpg
|
|
'';
|
|
showSignature = "append";
|
|
};
|
|
thunderbird = {
|
|
enable = true;
|
|
profiles = [ "nx2" ];
|
|
settings = id: { };
|
|
};
|
|
};
|
|
nx2site = {
|
|
address = "lennart@${hyper.domain}";
|
|
userName = "lennart@${hyper.domain}";
|
|
realName = "Lennart J. Kurzweg";
|
|
imap = {
|
|
port = 993;
|
|
host = "ssh.${hyper.domain}";
|
|
tls.enable = true;
|
|
};
|
|
smtp = {
|
|
port = 465;
|
|
host = "mail-eu.smtp2go.com";
|
|
tls.enable = true;
|
|
# port = 587;
|
|
# host = "mail.${hyper.domain}";
|
|
# tls.useStartTls = true;
|
|
};
|
|
signature = {
|
|
text = ''
|
|
About Me: https://nx2.site/about-me
|
|
Contact: https://nx2.site/contact
|
|
GPG: https://nx2.site/gpg
|
|
'';
|
|
showSignature = "append";
|
|
};
|
|
thunderbird = {
|
|
enable = true;
|
|
profiles = [ "nx2" ];
|
|
};
|
|
};
|
|
};
|
|
}
|
|
|
|
|
|
|
|
|
|
# hsmw = with secrets.email.hsmw; {
|
|
# address = "${un}@hs-mittweida.de";
|
|
# userName = "${un}@hs-mittweida.de";
|
|
# realName = "Lennart J. Kurzweg";
|
|
# imap = {
|
|
# port = 993;
|
|
# host = "xc.hs-mittweida.de";
|
|
# };
|
|
# smtp = {
|
|
# port = 587;
|
|
# host = "xc.hs-mittweida.de";
|
|
# tls.useStartTls = true;
|
|
# };
|
|
# signature = {
|
|
# text = ''
|
|
# MatNr: ${mnr}
|
|
# SemGr: ${semgr}
|
|
# About Me: https://nx2.site/about-me
|
|
# Contact: https://nx2.site/contact
|
|
# GPG: https://nx2.site/gpg
|
|
# '';
|
|
# showSignature = "append";
|
|
# };
|
|
# thunderbird = {
|
|
# enable = true;
|
|
# profiles = [ "nx2" ];
|
|
# settings = id: {
|
|
# "mail.server.server_${id}.fcc_folder" = "imap://${un}%40hs-mittweida.de@xc.hs-mittweida.de/Sent";
|
|
# };
|
|
# };
|
|
# };
|