diff options
author | tv <tv@krebsco.de> | 2018-10-27 15:02:39 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2018-10-27 15:02:39 +0200 |
commit | 212bc39249f9792cbedf2e9a6b3fed90c52c63e7 (patch) | |
tree | de2a5cf0be852b8beb8317481649460194f40d5b /makefu/2configs/home-manager/mail.nix | |
parent | 34e1f09bf5e233bee78ee63166d2a1d9944a51f9 (diff) | |
parent | 24f4e8dcf0eca55378fa018a9ed980625222653d (diff) |
Merge remote-tracking branch 'prism/master'
Diffstat (limited to 'makefu/2configs/home-manager/mail.nix')
-rw-r--r-- | makefu/2configs/home-manager/mail.nix | 46 |
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"; + }; + }; + }; +} |