-
Notifications
You must be signed in to change notification settings - Fork 1
/
aerc.nix
50 lines (43 loc) · 1.35 KB
/
aerc.nix
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
{config, ...}: {
accounts.email.accounts = {
asherah = {
primary = true;
address = "[email protected]";
realName = "Asherah Connor";
userName = "[email protected]";
imap.host = "imap.fastmail.com";
smtp.host = "smtp.fastmail.com";
folders.inbox = "INBOX";
aerc = {
enable = true;
extraAccounts = {
folders-sort = "INBOX";
folders-exclude = "~^Archive,Notes";
};
};
};
};
programs.aerc = {
enable = true;
# Starting with the default binds, to avoid aerc creating it itself and
# risking unmanaged configuration.
extraBinds = builtins.readFile ./aerc-binds.conf;
stylesets = {catppuccin-mocha = builtins.readFile ./aerc-catppuccin-mocha;};
extraConfig = {
# https://github.com/nix-community/home-manager/blob/0f4e5b4999fd6a42ece5da8a3a2439a50e48e486/modules/programs/aerc.nix#L167-L177
general.unsafe-accounts-conf = true;
ui = {
border-char-vertical = "│";
border-char-horizontal = "─";
styleset-name = "catppuccin-mocha";
};
filters = {
"text/plain" = "colorize";
"text/calendar" = "calendar";
"message/delivery-status" = "colorize";
"message/rfc822" = "colorize";
"text/html" = "pandoc -f html -t plain | colorize";
};
};
};
}