From b3a006c2314d3cc32e438ea9e133e9a2e630e3c3 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 7 Jan 2023 17:08:06 -0800 Subject: 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. --- home/mail/accounts/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'home/mail') 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"; -- cgit 1.4.1