summary refs log tree commit diff stats
path: root/user/settings/mail.nix
blob: 3ce9e5481a360d70c6a2c842d9f9a64a2bce357f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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;
  };
}