I’m trying to access my mail via a machine on which I installed Nixos a few weeks ago.
The database is on an nfs server and I’ve used it via a debian system. On nix, I get:
[andy@cathcart:~]$ notmuch new
A Xapian exception occurred opening database: Unable to get write lock on /home/andy/mail/.notmuch/xapian: locking probably not supported by this FS
However, I got it to work by changing the options for the filesystem in /etc/nixos/configuration.nix to include the “nolock” option. I believe that with the “lock” option, the file server should do locking. However, I failed to get that to work. With the “nolock” option, files are only locked on the local machine. So I must now ensure that I only modify the DB from a single machine.
For reference, here is the block from my configuration.nix file: