nixos-config/users/rouven/modules/accounts/default.nix

97 lines
2.3 KiB
Nix
Raw Normal View History

2023-01-01 21:30:41 +01:00
{ config, ... }:
let
gpg-default-key = "116987A8DD3F78FF8601BF4DB95E8FE6B11C4D09";
in
{
programs.thunderbird = {
enable = true;
profiles = {
default = {
withExternalGnupg = true;
isDefault = true;
};
};
};
2023-01-27 00:24:24 +01:00
programs = {
neomutt = {
enable = true;
sidebar.enable = true;
extraConfig = ''
source ${./dracula.muttrc}
'';
};
mbsync.enable = true;
msmtp.enable = true;
};
2023-01-01 21:30:41 +01:00
accounts.email.accounts = {
"rouven@rfive.de" = rec {
primary = true;
address = "rouven@rfive.de";
gpg.key = gpg-default-key;
realName = "Rouven Seifert";
userName = address;
2023-01-27 00:24:24 +01:00
# we use pass here since bitwarden's password input can't be reached frow within neomutt
# maybe we can replace this with sops as soon as the home manager module is merged
passwordCommand = "pass mail/rouven@rfive.de";
2023-01-01 21:30:41 +01:00
imap = {
host = "pro1.mail.ovh.net";
port = 993;
};
smtp = {
host = "pro1.mail.ovh.net";
port = 587;
2023-01-02 13:18:57 +01:00
tls.useStartTls = true;
2023-01-01 21:30:41 +01:00
};
thunderbird.enable = true;
2023-01-27 00:24:24 +01:00
mbsync = {
enable = true;
create = "maildir";
extraConfig = {
account = {
AuthMechs = "Login";
};
};
subFolders = "Verbatim";
};
neomutt = {
enable = true;
mailboxName = "--rouven@rfive.de--";
extraMailboxes = [ "Sent" "Trash" "Junk-E-Mail" "Drafts" ];
};
2023-01-01 21:30:41 +01:00
};
2023-01-27 00:24:24 +01:00
"TU-Dresden" = {
2023-01-01 21:30:41 +01:00
address = "rouven.seifert@mailbox.tu-dresden.de";
gpg.key = gpg-default-key;
realName = "Rouven Seifert";
2023-01-27 00:24:24 +01:00
userName = "rose159e";
passwordCommand = "pass mail/tu-dresden";
2023-01-01 21:30:41 +01:00
imap = {
host = "msx.tu-dresden.de";
port = 993;
};
smtp = {
host = "msx.tu-dresden.de";
port = 587;
2023-01-02 13:18:57 +01:00
tls.useStartTls = true;
2023-01-01 21:30:41 +01:00
};
thunderbird.enable = true;
2023-01-27 00:24:24 +01:00
mbsync = {
enable = true;
create = "maildir";
extraConfig = {
account = {
AuthMechs = "Login";
};
};
subFolders = "Verbatim";
2023-01-01 21:30:41 +01:00
};
2023-01-27 00:24:24 +01:00
msmtp.enable = true;
neomutt = {
enable = true;
mailboxName = "--TU Dresden-------";
extraMailboxes = [ "Sent" "Opal" "Trash" "Junk-E-Mail" "Drafts" ];
2023-01-01 21:30:41 +01:00
};
};
};
}