about summary refs log tree commit diff stats
path: root/home-manager/config/mail/default.nix
blob: f934b68cd4f71f23ca0afb1102273739f223741f (plain) (blame)
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{
  config,
  pkgs,
  lib,
  ...
}: let
  non_public_accounts = import ./non_public_accounts.nix {inherit pkgs;};
  accounts = lib.recursiveUpdate {inherit soispha;} non_public_accounts;

  soispha = {
    address = "soispha@vhack.eu";
    userName = "soispha@vhack.eu";
    realName = "Soispha";
    primary = true;
    passwordCommand = "${pkgs.libsecret}/bin/secret-tool lookup account soispha@vhack.eu";
    aliases = [
      "admin@vhack.eu"
    ];
    folders = {
    };
    gpg = {
      encryptByDefault = true;
      key = "9606FC749FCE16360723D4ADA5E94010C3A642AD";
      signByDefault = true;
    };
    signature = {
      # TODO
    };
    neomutt = {
      enable = true;
    };
    mbsync = {
      enable = true;
      create = "both";
    };
    himalaya = {
      enable = true;
      backend = "imap";
      sender = "smtp";
      settings = {
        # TODO
      };
    };
    smtp = {
      host = "server1.vhack.eu";
      port = 465;
    };
    imap = {
      host = "server1.vhack.eu";
      port = 993;
    };
    jmap = {
      # TODO
    };
    maildir = {
      path = "soispha";
    };
  };
in {
  accounts.email = {
    maildirBasePath = "${config.xdg.dataHome}/maildir";
    inherit accounts;
  };
}