about summary refs log tree commit diff
path: root/home
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2023-01-07 17:08:06 -0800
committerFranck Cuny <franck@fcuny.net>2023-01-07 17:08:06 -0800
commitb3a006c2314d3cc32e438ea9e133e9a2e630e3c3 (patch)
tree929a1ce9bb54d9c0fdc65a54de31a07329d0beec /home
parentfix(home/python): don't specify the version (diff)
downloadworld-b3a006c2314d3cc32e438ea9e133e9a2e630e3c3.tar.gz
fix(home/mail): set the full path to notmuch config for afew
It's expecting the configuration in a different place. I think some
environment variable are not propagated correctly, might look into this
later.
Diffstat (limited to '')
-rw-r--r--home/mail/accounts/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/home/mail/accounts/default.nix b/home/mail/accounts/default.nix
index 67ac4fb..5ebba2c 100644
--- a/home/mail/accounts/default.nix
+++ b/home/mail/accounts/default.nix
@@ -58,7 +58,7 @@ in
       new.ignore = [ "Trash" ];
       search.excludeTags = [ "spam" "deleted" ];
       hooks = {
-        postNew = "${config.home.profileDirectory}/bin/afew -v --tag --new";
+        postNew = "${config.home.profileDirectory}/bin/afew -v --tag --new --notmuch-config=${config.xdg.configHome}/notmuch/default/config";
       };
     };
 
@@ -71,7 +71,7 @@ in
         ];
         ExecStartPre = [
           "${pkgs.notmuch}/bin/notmuch tag '-inbox' 'tag:inbox AND tag:archive'"
-          "${pkgs.afew}/bin/afew -m -v"
+          "${pkgs.afew}/bin/afew -m -v --notmuch-config=${config.xdg.configHome}/notmuch/default/config"
         ];
         ExecStart = "${pkgs.isync}/bin/mbsync -a";
         ExecStartPost = "${pkgs.notmuch}/bin/notmuch new --quiet";