From 32b919f4d5b4b5e7c4c699aad8a3b169c9baa205 Mon Sep 17 00:00:00 2001 From: wi11-holdsworth <83637728+wi11-holdsworth@users.noreply.github.com> Date: Wed, 15 Oct 2025 22:04:11 +1100 Subject: [PATCH] feat: add filters to aerc, catppuccin theme, and default folders --- modules/home-manager/features/aerc.nix | 48 ++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/modules/home-manager/features/aerc.nix b/modules/home-manager/features/aerc.nix index a79e1fa..5560061 100644 --- a/modules/home-manager/features/aerc.nix +++ b/modules/home-manager/features/aerc.nix @@ -8,8 +8,56 @@ let in { config = lib.mkIf config.${feature}.enable { + accounts.email.accounts.personal.aerc.enable = true; programs.aerc = { enable = true; + extraAccounts = { + default = "INBOX"; + folders-sort = "INBOX, Starred, Drafts, Sent, Trash, Archive, Spam"; + }; + extraConfig = { + general.unsafe-accounts-conf = true; + filters = { + "text/plain" = "colorize"; + "text/calendar" = "calendar | colorize"; + "text/html" = "html | colorize"; + }; + ui = { + styleset-name = "catppuccin-mocha"; + sort = "-r date"; + }; + }; + stylesets = { + catppuccin-mocha = { + "*.default" = true; + "*.normal" = true; + "default.fg" = "#cdd6f4"; + "error.fg" = "#f38ba8"; + "warning.fg" = "#fab387"; + "success.fg" = "#a6e3a1"; + "tab.fg" = "#6c7086"; + "tab.bg" = "#181825"; + "tab.selected.fg" = "#cdd6f4"; + "tab.selected.bg" = "#1e1e2e"; + "tab.selected.bold" = true; + "border.fg" = "#11111b"; + "border.bold" = true; + "msglist_unread.bold" = true; + "msglist_flagged.fg" = "#f9e2af"; + "msglist_flagged.bold" = true; + "msglist_result.fg" = "#89b4fa"; + "msglist_result.bold" = true; + "msglist_*.selected.bold" = true; + "msglist_*.selected.bg" = "#313244"; + "dirlist_*.selected.bold" = true; + "dirlist_*.selected.bg" = "#313244"; + "statusline_default.fg" = "#9399b2"; + "statusline_default.bg" = "#313244"; + "statusline_error.bold" = true; + "statusline_success.bold" = true; + "completion_default.selected.bg" = "#313244"; + }; + }; }; };