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