First basic steps to migration of email to neomut und co.
This commit is contained in:
parent
2481212aba
commit
6e498612a4
4
home.nix
4
home.nix
|
@ -51,6 +51,10 @@
|
||||||
|
|
||||||
fonts.fontconfig.enable = true;
|
fonts.fontconfig.enable = true;
|
||||||
|
|
||||||
|
accounts.email = import ./home/accounts/email.nix {
|
||||||
|
inherit config pkgs;
|
||||||
|
};
|
||||||
|
|
||||||
xsession = import ./home/xsession.nix {
|
xsession = import ./home/xsession.nix {
|
||||||
inherit config pkgs;
|
inherit config pkgs;
|
||||||
};
|
};
|
||||||
|
|
69
home/accounts/email.nix
Normal file
69
home/accounts/email.nix
Normal 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"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -58,4 +58,13 @@ in {
|
||||||
|
|
||||||
# Media
|
# Media
|
||||||
cmus.enable = true;
|
cmus.enable = true;
|
||||||
|
|
||||||
|
offlineimap.enable = true;
|
||||||
|
neomutt = {
|
||||||
|
enable = true;
|
||||||
|
vimKeys = true;
|
||||||
|
sidebar = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue