From 21bdf17d577d87a01e3caaad6b96b58746b51f90 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 9 Oct 2019 17:52:28 +0200 Subject: Unify mail setup --- user/settings/mail.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 user/settings/mail.nix (limited to 'user/settings/mail.nix') diff --git a/user/settings/mail.nix b/user/settings/mail.nix new file mode 100644 index 00000000..3ce9e548 --- /dev/null +++ b/user/settings/mail.nix @@ -0,0 +1,25 @@ +{ config, pkgs, ... }: + +{ + home.packages = [ + pkgs.html2text + ]; + accounts.email = { + maildirBasePath = "mail"; + }; + programs.mbsync = { + enable = true; + extraConfig = '' + CopyArrivalDate yes + FSync no + ''; + }; + services.mbsync = { + enable = true; + frequency = "*:6/15"; + postExec = "${config.programs.emacs.finalPackage}/bin/emacsclient -e (mu4e-update-index)"; + }; + programs.msmtp = { + enable = true; + }; +} -- cgit 1.4.1