diff options
author | Alan Pearce | 2019-10-09 17:52:28 +0200 |
---|---|---|
committer | Alan Pearce | 2019-10-09 17:53:01 +0200 |
commit | 21bdf17d577d87a01e3caaad6b96b58746b51f90 (patch) | |
tree | d768b23b0ff302880f8d71843dd20c333ccf844a /user/settings/mail.nix | |
parent | 7f06dcd355a37f384589c0f01f7c33de8e00bdca (diff) | |
download | nixfiles-21bdf17d577d87a01e3caaad6b96b58746b51f90.tar.lz nixfiles-21bdf17d577d87a01e3caaad6b96b58746b51f90.tar.zst nixfiles-21bdf17d577d87a01e3caaad6b96b58746b51f90.zip |
Unify mail setup
Diffstat (limited to 'user/settings/mail.nix')
-rw-r--r-- | user/settings/mail.nix | 25 |
1 files changed, 25 insertions, 0 deletions
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; + }; +} |