thunderbird: add uni-marburg email

This commit is contained in:
Daniel Langbein 2024-10-22 12:00:48 +02:00
parent a7e608daca
commit 25a1acb284
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002

View File

@ -1,4 +1,8 @@
{ config, pkgs, ... }: { config, pkgs, lib, ... }:
let
# TODO: trim whitespaces from string
email-uni-marburg = (builtins.readFile ../secrets/email-uni-marburg);
in
{ {
# https://github.com/NotAShelf/nyx/blob/main/homes/notashelf/graphical/apps/thunderbird/default.nix # https://github.com/NotAShelf/nyx/blob/main/homes/notashelf/graphical/apps/thunderbird/default.nix
# https://github.com/dr460nf1r3/dr460nixed/blob/main/home-manager/email.nix # https://github.com/dr460nf1r3/dr460nixed/blob/main/home-manager/email.nix
@ -6,7 +10,7 @@
home-manager.users.yoda = { osConfig, config, pkgs, ... }: { home-manager.users.yoda = { osConfig, config, pkgs, ... }: {
accounts.email.accounts = { accounts.email.accounts = {
personal = { "personal" = {
address = "daniel@systemli.org"; address = "daniel@systemli.org";
gpg = { gpg = {
# The key to use as listed in gpg --list-keys. # The key to use as listed in gpg --list-keys.
@ -29,6 +33,29 @@
# Enable the Thunderbird mail client for this email account. # Enable the Thunderbird mail client for this email account.
thunderbird.enable = true; thunderbird.enable = true;
}; };
"uni-marburg" = {
address = email-uni-marburg;
primary = false;
realName = "Daniel Langbein";
# It sees as if both is possible:
# userName: part of email before "@"
# userName: full email
#userName = lib.head (lib.splitString "@" email-uni-marburg);
userName = email-uni-marburg;
imap = {
host = "imap.students.uni-marburg.de";
port = 993;
};
smtp = {
host = "smtp.students.uni-marburg.de";
port = 465;
};
# Enable the Thunderbird mail client for this email account.
thunderbird.enable = true;
};
}; };
programs.thunderbird = { programs.thunderbird = {