this repo has no description
1{
2 pkgs,
3 config,
4 lib,
5 ...
6}:
7{
8 targets.darwin.defaults = {
9 # Remember the fallen
10 "com.apple.mail" = {
11 UserHeaders = "{ \"X-Clacks-Overhead\" = \"GNU Terry Pratchett\"; }";
12 };
13 };
14
15 programs.himalaya = {
16 enable = true;
17 };
18 # programs.mbsync.enable = true;
19 programs.msmtp.enable = true;
20 # programs.notmuch.enable = true;
21
22 programs.aerc = {
23 enable = false;
24 extraConfig = {
25 general.unsafe-accounts-conf = true;
26
27 filters = {
28 "text/plain" = "colorize";
29 };
30
31 ui = {
32 threading-enabled = true;
33 };
34 };
35 };
36
37 accounts.email.accounts."hauleth" = {
38 realName = "Łukasz Niemier";
39 userName = "hauleth";
40 address = "~@hauleth.dev";
41 # aliases = [
42 # "#@hauleth.dev"
43 # ];
44 primary = true;
45
46 passwordCommand = "op item get i6gyiq3aro4lp2ys5xygfb7uwu --field password";
47
48 # mbsync.enable = true;
49 # notmuch.enable = true;
50 aerc = {
51 enable = true;
52 extraAccounts = {
53 default = "INBOX";
54 copy-to = "INBOX";
55 folders-sort = "INBOX,Draft";
56 signature-file = toString (
57 pkgs.writeTextFile {
58 name = "hauleth-signature";
59 text = config.accounts.email.accounts.hauleth.signature.text;
60 }
61 );
62 };
63 };
64 himalaya = {
65 enable = true;
66 settings = {
67 folder.aliases = {
68 inbox = "INBOX";
69 sent = "Sent Items";
70 trash = "Deleted Items";
71 };
72 };
73 };
74 msmtp.enable = true;
75
76 signature = {
77 showSignature = "append";
78
79 text = ''
80 Hauleth
81 ~@hauleth.dev
82 '';
83 };
84
85 # TODO: Migrate to JMAP
86 imap = {
87 host = "mail.hauleth.dev";
88 port = 993;
89 };
90
91 jmap = {
92 host = "mail.hauleth.dev";
93 };
94
95 smtp = {
96 host = "mail.hauleth.dev";
97 port = 465;
98 # tls = true;
99 };
100 };
101}