diff options
author | Franck Cuny <franck@fcuny.net> | 2023-01-07 17:08:06 -0800 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2023-01-07 17:08:06 -0800 |
commit | b3a006c2314d3cc32e438ea9e133e9a2e630e3c3 (patch) | |
tree | 929a1ce9bb54d9c0fdc65a54de31a07329d0beec /home/mail/accounts | |
parent | fix(home/python): don't specify the version (diff) | |
download | world-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 'home/mail/accounts')
-rw-r--r-- | home/mail/accounts/default.nix | 4 |
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"; |