summaryrefslogtreecommitdiff
path: root/common/home/accounts/email.nix
blob: 0c3de66fc11722fb53522f8ca2f0c94cf04e16c3 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{ ... }:
{
  maildirBasePath = ".local/share/mail";

  accounts = {
    uberspace = {
      userName = "nathan@n8.uber.space";
      address = "nathan@nathanreiner.xyz";
      primary = true;
      realName = "Nathan Reiner";
      passwordCommand = "pass mail/nathan@nathanreiner.xyz";

      folders = {
        drafts = "Drafts";
        inbox = "INBOX";
        sent = "Sent";
        trash = "Trash";
      };

      smtp = {
        host = "menkent.uberspace.de";
        port = 465;
        tls = {
          enable = true;
        };
      };

      imap = {
        host = "menkent.uberspace.de";
        port = 993;
        tls = {
          enable = true;
        };
      };

      mbsync.enable = true;
      msmtp.enable = true;

      neomutt = {
        enable = true;
        showDefaultMailbox = true;
      };
    };
  };
}