home-manager/tests
Thibaut Marty 6d9d9294d0
notmuch: fix database creation when using hooks
When an hook is defined, a side effect was the creation of the
${notmuchIni.database.path}/.notmuch/ directory by home-manager. If
the Xapian database does not exist yet but this .notmuch directory
exists, Notmuch is confused and throws an error when `notmuch new` is
run (while this should create the database the first time).

This commit changes the hooks paths to $XDG_CONFIG_HOME where Notmuch
expects them (see notmuch-config(1)) instead of inside the maildir
database directory.

It also moves the configuration where Notmuch expects it, but the
$NOTMUCH_CONFIG environment variable is kept for backward
compatibility.
2022-02-11 00:04:40 +01:00
..
lib/types lib: remove top-level with lib 2021-10-31 08:50:53 +01:00
modules notmuch: fix database creation when using hooks 2022-02-11 00:04:40 +01:00
asserts.nix tests: fix test.assert.assertions.enable not working 2021-10-13 01:29:23 +02:00
big-test.nix tests: make enableBig an option 2022-01-02 10:36:52 +01:00
default.nix twmn: add module 2022-02-04 01:05:04 +01:00
stubs.nix tests: add option test.stubs 2021-09-26 23:26:38 +02:00