First basic steps to migration of email to neomut und co.

This commit is contained in:
Daniel Siepmann 2022-10-06 13:10:32 +02:00
parent 2481212aba
commit 6e498612a4
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4
3 changed files with 82 additions and 0 deletions

View file

@ -51,6 +51,10 @@
fonts.fontconfig.enable = true;
accounts.email = import ./home/accounts/email.nix {
inherit config pkgs;
};
xsession = import ./home/xsession.nix {
inherit config pkgs;
};

69
home/accounts/email.nix Normal file
View file

@ -0,0 +1,69 @@
{ config, pkgs }:
{
maildirBasePath = "${config.xdg.dataHome}/maildir";
accounts = {
Private = rec {
primary = true;
address = "daniel@daniel-siepmann.de";
aliases = [
"coding@daniel-siepmann.de"
];
realName = "Daniel Siepmann";
gpg = {
key = "15560EF4";
signByDefault = true;
encryptByDefault = true;
};
folders = {
inbox = "INBOX";
};
maildir = {
path = "private";
};
flavor = "plain";
userName = address;
# TODO: Somehow define once in a central place and only add the account name
passwordCommand = "${pkgs.libsecret}/bin/secret-tool lookup account daniel@daniel-siepmann.de";
imap = {
host = "imap.mailbox.org";
port = 993;
tls = {
enable = true;
};
};
smtp = {
host = "smtp.mailbox.org";
port = 587;
tls = {
enable = true;
useStartTls = true;
};
};
# TODO: Create a sytemd service + timer
offlineimap.enable = true;
neomutt = {
enable = true;
extraMailboxes = [
"Archives.2018"
"Archives.2019"
"Archives.2020"
"Archives.2021"
"Archives.2022"
"Archives.Rechnungen"
"GerritOrGitHub.NIX"
"GerritOrGitHub.phpactor"
"GerritOrGitHub.TYPO3-Forge"
"GerritOrGitHub.TYPO3-Gerrit"
"GerritOrGitHub.TYPO3-Tea"
"Junk"
];
};
};
};
}

View file

@ -58,4 +58,13 @@ in {
# Media
cmus.enable = true;
offlineimap.enable = true;
neomutt = {
enable = true;
vimKeys = true;
sidebar = {
enable = true;
};
};
}