dotnix/apps/nogui/aerc.nix

44 lines
1.4 KiB
Nix

{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" <john.olheiser@gmail.com>'';
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");
};
};
}