aboutsummaryrefslogtreecommitdiffstats
path: root/modules/private/email.example.nix
blob: 0e35e26d7596bf9b8aac0b950c9f86bd34226b8f (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
26
27
28
29
{ config, ... }:

{
  config.accounts.email.accounts = {
    "example" = {
      realName = "Example User";
      address = "user@example.com";
      userName = "user@example.com";
      passwordCommand = "${config.programs.gopass.package}/bin/gopass show -o mail/example";
      flavor = "gmail.com";
      primary = true;

      mbsync = {
        enable = true;
        createMailbox = true;
        extraConfig.channel = {
          Patterns = "*";
          SyncState = "*";
        };
      };

      notmuch.enable = true;

      mu.enable = false;
      msmtp.enable = false;
      imapnotify.enable = false;
    };
  };
}