From afcee0a4635270a73a7a08c2d5f06fb5d674f17a Mon Sep 17 00:00:00 2001 From: jolheiser Date: Wed, 6 Dec 2023 22:08:38 -0600 Subject: [PATCH] feat: aerc Signed-off-by: jolheiser --- apps/nogui/aerc.nix | 43 ++++++++++++++++++++++++++++++++++++++++++ apps/nogui/default.nix | 1 + 2 files changed, 44 insertions(+) create mode 100644 apps/nogui/aerc.nix diff --git a/apps/nogui/aerc.nix b/apps/nogui/aerc.nix new file mode 100644 index 0000000..33c8962 --- /dev/null +++ b/apps/nogui/aerc.nix @@ -0,0 +1,43 @@ +{pkgs, ...}: { + programs.aerc = { + enable = true; + extraConfig = { + general = { + default-save-path = "~/Downloads"; + pgp-provider = "gpg"; + unsafe-accounts-conf = true; + }; + ui = { + border-char-vertical = "│"; + border-char-horizontal = "─"; + styleset-name = "catppuccin-mocha"; + spinner = "▰▱▱▱▱▱▱,▰▰▱▱▱▱▱,▰▰▰▱▱▱▱,▰▰▰▰▱▱▱,▰▰▰▰▰▱▱,▰▰▰▰▰▰▱,▰▰▰▰▰▰▰"; + spinner-interval = "40ms"; + }; + filters = { + "text/html" = "html | colorize"; + "text/plain" = "colorize"; + }; + }; + extraAccounts = { + gmail = { + source = "imaps://john.olheiser%40gmail.com@imap.gmail.com:993"; + source-cred-cmd = "git config --get sendemail.smtpPass"; + outgoing = "smtps://john.olheiser%40gmail.com@smtp.gmail.com:587"; + outgoing-cred-cmd = "git config --get sendemail.smtpPass"; + default = "INBOX"; + from = ''"John Olheiser" ''; + cache-headers = true; + }; + }; + stylesets = { + catppuccin-mocha = builtins.readFile (pkgs.fetchFromGitHub { + owner = "catppuccin"; + repo = "aerc"; + rev = "c1f233bd22894d7ccf69846c3bd7bcd5af0fc2a2"; + sha256 = "sha256-YJdNPROhwgge14O1zuGh/ZK/qjHDxi+xdAyPEIXRI9c="; + } + + "/dist/catppuccin-mocha"); + }; + }; +} diff --git a/apps/nogui/default.nix b/apps/nogui/default.nix index 72f8d9e..9617a28 100644 --- a/apps/nogui/default.nix +++ b/apps/nogui/default.nix @@ -4,6 +4,7 @@ ... }: { imports = [ + ./aerc.nix ./bat.nix ./bottom.nix ./eza.nix