summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/home-manager/mail.nix
diff options
context:
space:
mode:
authorlassulus <lass@blue.r>2018-09-24 10:19:34 +0200
committerlassulus <lass@blue.r>2018-09-24 10:19:34 +0200
commit260b757feebf710daeb4d8964297dff2ed794278 (patch)
treebe58e53ad90f14928ff888ab10d0a501df78c744 /makefu/2configs/home-manager/mail.nix
parentf473c1f7893abb4d7f299d5cf7d0f382086cba9e (diff)
parent1996b597480ab45bbd15c0d7095921ced7a9e9ab (diff)
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'makefu/2configs/home-manager/mail.nix')
-rw-r--r--makefu/2configs/home-manager/mail.nix46
1 files changed, 46 insertions, 0 deletions
diff --git a/makefu/2configs/home-manager/mail.nix b/makefu/2configs/home-manager/mail.nix
new file mode 100644
index 000000000..ce7ae4f4d
--- /dev/null
+++ b/makefu/2configs/home-manager/mail.nix
@@ -0,0 +1,46 @@
+{
+ home-manager.users.makefu = {
+ accounts.email.accounts.syntaxfehler = {
+ address = "felix.richter@syntax-fehler.de";
+ userName = "Felix.Richter@syntax-fehler.de";
+ imap = {
+ host = "syntax-fehler.de";
+ tls = {
+ enable = true;
+ };
+ };
+ smtp = {
+ host = "syntax-fehler.de";
+ tls = {
+ enable = true;
+ };
+ };
+ msmtp.enable = true;
+ notmuch.enable = true;
+ offlineimap = {
+ enable = true;
+ postSyncHookCommand = "notmuch new";
+ extraConfig.remote = {
+ holdconnectionopen = true;
+ idlefolders = "['INBOX']";
+ };
+ };
+ primary = true;
+ realName = "Felix Richter";
+ passwordCommand = "gpg --use-agent --quiet --batch -d /home/makefu/.mail/syntax-fehler.gpg";
+ };
+ programs.offlineimap.enable = true;
+ programs.offlineimap.extraConfig = {
+ mbnames = {
+ filename = "~/.mutt/muttrc.mailboxes";
+ header = "'mailboxes '";
+ peritem = "'+%(accountname)s/%(foldername)s'";
+ sep = "' '";
+ footer = "'\\n'";
+ };
+ general = {
+ ui = "TTY.TTYUI";
+ };
+ };
+ };
+}