summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/home-manager/mail.nix
diff options
context:
space:
mode:
Diffstat (limited to 'makefu/2configs/home-manager/mail.nix')
-rw-r--r--makefu/2configs/home-manager/mail.nix73
1 files changed, 0 insertions, 73 deletions
diff --git a/makefu/2configs/home-manager/mail.nix b/makefu/2configs/home-manager/mail.nix
deleted file mode 100644
index 3aa1814ca..000000000
--- a/makefu/2configs/home-manager/mail.nix
+++ /dev/null
@@ -1,73 +0,0 @@
-{ pkgs, ... }:
-{
- home-manager.users.makefu = {
- home.packages= with pkgs;[ (pkgs.writers.writeDashBin "mailsync"''
- ${imapfilter}/bin/imapfilter -t /etc/ssl/certs/ca-bundle.crt \
- && ${isync}/bin/mbsync -a \
- && ${libnotify}/bin/notify-send -t 1000000 -u critical 'Mail sync finished'
-
- ''
- )];
- programs.mbsync.enable = true;
- accounts.email.maildirBasePath = "/home/makefu/Mail";
- accounts.email.certificatesFile = "/etc/ssl/certs/ca-certificates.crt";
- accounts.email.accounts.syntaxfehler = {
- address = "felix.richter@syntax-fehler.de";
- userName = "Felix.Richter@syntax-fehler.de";
- imap = {
- host = "syntax-fehler.de";
- tls = {
- enable = true;
- };
- };
- mbsync = {
- enable = true;
- create = "both";
- remove = "both";
- expunge = "both";
- patterns = [ "*" "!INBOX.Sent*"];
- };
- smtp = {
- host = "syntax-fehler.de";
- tls = {
- enable = true;
- };
- };
- folders = {
- sent = "Sent";
- trash = "Trash";
- inbox = "INBOX";
- drafts = "Drafts";
- };
- msmtp.enable = true;
- notmuch.enable = true;
- offlineimap = {
- enable = true;
- postSyncHookCommand = "notmuch new";
- extraConfig.remote = {
- auth_mechanisms = "LOGIN";
- tls_level = "tls_secure";
- ssl_version = "tls1_2";
- holdconnectionopen = true;
- idlefolders = "['INBOX']";
- };
- };
- primary = true;
- realName = "Felix Richter";
- passwordCommand = "gpg --use-agent --quiet --batch -d /home/makefu/.gnupg/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";
- };
- };
- };
-}