aboutsummaryrefslogtreecommitdiff
path: root/mail.nix
blob: 9b2208803334fc407baf1bfe521a763c883d4288 (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
46
47
48
{ config
, lib
, pkgs
, ...
}:

{
  accounts.email.maildirBasePath = "mail";
  accounts.email.accounts."[email protected]" = {
    address = "[email protected]";
    folders = {
      drafts = "drafts";
      sent = "sent";
      trash = "trash";
      inbox = "inbox";
    };
    imap = {
      host = "mail.postale.io";
      port = 993;
    };
    maildir = {
      path = "personal";
    };
    mbsync = {
      enable = true;
      create = "maildir";
      expunge = "maildir";
    };
    primary = true;
    passwordCommand = "${pkgs.gnupg}/bin/gpg -q --for-your-eyes-only --no-tty -d /home/np/.password-store/email/personal.gpg";
    realName = "Akshay";
    signature = {
      text = ''
        --
        Akshay 
        <[email protected]>
      '';
    };
    smtp = {
      host = "mail.postale.io";
      port = 587;
      tls.useStartTls = true;
    };
    userName = "[email protected]";
    notmuch.enable = true;
    msmtp.enable = true;
  };
}