aboutsummaryrefslogtreecommitdiffstats
path: root/modules/programs/aerc
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar+git@gmail.com>2026-07-09 20:34:00 +0530
committerArpit Chakladar <arpitchakladar+git@gmail.com>2026-07-09 20:34:00 +0530
commitee32d0d0813f9870d89fb7d821633fd8b4a9987a (patch)
tree97ea433469377daee6f9651f10a0a7a21be95d75 /modules/programs/aerc
parente2ae84d1c8ab00021127d455e549a47af9bc3291 (diff)
downloadhome-manager-config-ee32d0d0813f9870d89fb7d821633fd8b4a9987a.tar.gz
home-manager-config-ee32d0d0813f9870d89fb7d821633fd8b4a9987a.zip
feat: added email configuration with mbsync + notmuch
added a private module which will be gitignored and serves to include options that are not meant to be shared
Diffstat (limited to 'modules/programs/aerc')
-rw-r--r--modules/programs/aerc/assertions.nix19
-rw-r--r--modules/programs/aerc/default.nix58
2 files changed, 0 insertions, 77 deletions
diff --git a/modules/programs/aerc/assertions.nix b/modules/programs/aerc/assertions.nix
deleted file mode 100644
index a2b49c1..0000000
--- a/modules/programs/aerc/assertions.nix
+++ /dev/null
@@ -1,19 +0,0 @@
-{ config, ... }:
-{
- assertions = [
- {
- assertion = !config.programs.aerc.enable || config.programs.less.enable;
- message = ''
- programs.aerc is enabled but programs.less.enable is not.
- aerc requires less as its pager. Please enable programs.less.
- '';
- }
- {
- assertion = !config.programs.aerc.enable || config.programs.bat.enable;
- message = ''
- programs.aerc is enabled but programs.bat.enable is not.
- aerc requires bat for text/html filtering. Please enable programs.bat.
- '';
- }
- ];
-}
diff --git a/modules/programs/aerc/default.nix b/modules/programs/aerc/default.nix
deleted file mode 100644
index 5b4ce78..0000000
--- a/modules/programs/aerc/default.nix
+++ /dev/null
@@ -1,58 +0,0 @@
-# aerc - Terminal email client
-{
- config,
- lib,
- ...
-}:
-
-{
- imports = [ ./assertions.nix ];
-
- config = lib.mkIf config.programs.aerc.enable {
- programs.aerc = {
- extraConfig = {
- general = {
- unsafe-accounts-conf = false;
- default-save-path = "${config.home.homeDirectory}/Downloads";
- use-terminal-pinentry = false;
- };
-
- ui = {
- index-columns = "flags:4,name<32%,subject,date>=";
- column-name = "{{with index .From 0}}{{.Address}}{{if .Name}} ({{.Name}}){{end}}{{end}}";
- timestamp-format = "2006-01-02 15:04";
- this-day-time-format = "15:04";
- this-week-time-format = "Mon 15:04";
- sidebar-width = 24;
- };
-
- viewer = {
- pager = lib.getExe config.programs.less.package;
- show-headers = true;
- };
-
- filters = ''
- text/plain = fold -w 100 -s
- text/html = fold -w 100 -s
- text/* = fold -w 100 -s
- message/delivery-status = fold -w 100 -s
- '';
-
- hooks = {
- mail-added = "aerc-sync-mail \"$AERC_ACCOUNT\"";
- mail-deleted = "aerc-sync-mail \"$AERC_ACCOUNT\"";
- flag-changed = "aerc-sync-mail \"$AERC_ACCOUNT\"";
- };
- };
- };
-
- home.file.".config/aerc/notmuch-query-map".text = ''
- Inbox=tag:inbox and not tag:deleted
- Unread=tag:unread and not tag:deleted
- Flagged=tag:flagged and not tag:deleted
- Sent=folder:sent or folder:Sent or folder:"[Gmail]/Sent Mail"
- Archive=not tag:inbox and not tag:deleted
- All=*
- '';
- };
-}