diff options
| author | Stefan Weigl-Bosker <stefan@s00.xyz> | 2026-03-18 19:21:13 -0400 |
|---|---|---|
| committer | Stefan Weigl-Bosker <stefan@s00.xyz> | 2026-03-18 19:21:27 -0400 |
| commit | e3b494cdf1bf0049a0797ec1c14ca279b1f253ec (patch) | |
| tree | 9a960562fe520bb41a493753a4317d59c2c48450 | |
| parent | 02b143f5342cc5354e669ca5e214d7ae464b1888 (diff) | |
| download | home-e3b494cdf1bf0049a0797ec1c14ca279b1f253ec.tar.gz | |
modules/email: various changes for `git send-email` workflow
| -rw-r--r-- | modules/aerc.nix | 27 | ||||
| -rw-r--r-- | modules/email/default.nix | 18 | ||||
| -rw-r--r-- | modules/git/default.nix | 4 |
3 files changed, 45 insertions, 4 deletions
diff --git a/modules/aerc.nix b/modules/aerc.nix index c575395..bb95583 100644 --- a/modules/aerc.nix +++ b/modules/aerc.nix @@ -19,12 +19,29 @@ in unsafe-accounts-conf = true; default-menu-cmd = "fzf --tmux"; }; - ui.sidebar-width = 0; + ui = { + this-day-time-format="03:04 PM"; + this-year-time-format="2006-01-02"; + dirlist-tree=true; + dirlipse-collapse=1; + sidebar-width = 20; + }; + "ui:folder=Sent" = { + index-columns = "date<20,name<17,flags>4,subject<*"; + column-name = "{{index (.To | names) 0}}"; + }; filters = { - "text/plain" = "colorize"; + "subject,~^\\[PATCH"="hldiff"; + "subject,~^\\[RFC"="hldiff"; + "text/*" = "plaintext"; + "text/calendar" = "calendar"; + "text/html" = "html | colorize"; + "message/delivery-status" = "colorize"; + "message/rfc822" = "colorize"; }; viewer = { - pager = "nvim +Man!"; + # pager = "nvim +Man!"; + pager = "less -Rc"; }; }; extraBinds = { @@ -144,6 +161,10 @@ in "a" = ":attach<space>"; "d" = ":detach<space>"; }; + "compose::editor" = { + "$noinherit" = "true"; + "$ex" = "<C-x>"; + }; terminal = { "$noinherit" = "true"; "$ex" = "<C-x>"; diff --git a/modules/email/default.nix b/modules/email/default.nix index 08a141f..32120aa 100644 --- a/modules/email/default.nix +++ b/modules/email/default.nix @@ -19,10 +19,15 @@ in realName = "Stefan Weigl-Bosker"; userName = "stefan@s00.xyz"; passwordCommand = "${pkgs.pass}/bin/pass show email/stefan@s00.xyz"; + mbsync = { + enable = true; + create = "maildir"; + }; aerc = { enable = true; extraAccounts = { - default = "INBOX"; + default = "Inbox"; + check-mail-cmd = "mbsync -a && notmuch new"; }; }; imap = { @@ -35,7 +40,18 @@ in port = 465; tls.enable = true; }; + msmtp.enable = true; thunderbird.enable = true; + notmuch.enable = true; + }; + + programs.mbsync.enable = true; + programs.msmtp.enable = true; + programs.notmuch = { + enable = true; + hooks = { + preNew = "mbsync --all"; + }; }; }; } diff --git a/modules/git/default.nix b/modules/git/default.nix index e5e60cb..db58e7a 100644 --- a/modules/git/default.nix +++ b/modules/git/default.nix @@ -65,6 +65,10 @@ in # key = "7783298ECC2A778EAC7EF1C8C430A3B6C37610D1"; }; extraConfig = { + sendemail.identity = "personal"; + "sendemail" = { + sendmailCmd = "${pkgs.msmtp}"; + }; init.defaultBranch = "main"; merge.conflictStyle = "zdiff3"; pull.rebase = true; |