I use NixOS for self-hosting. I set up the audiobookshelf package but when I try to create a Library I get an “invalid folder” error. I’m assuming this is a permissions problem because of how I set up my media folder.
I store my audiobooks at /media/audiobooks. The /media directory was defined in my jellyfin config using the following:
systemd.tmpfiles.rules = [
"d /media 0770 myuser jellyfin - -"
];
I’ve tried adding the following to my audiobookshelf config but it doesn’t seem to work. I still get the “invalid folder” error
systemd.tmpfiles.rules = [
"a+ /media/audiobooks rwx - - - - u:audiobookshelf"
"a+ /media/books rwx - - - - u:audiobookshelf"
];
I also tried running
usermod -a -G jellyfin audiobookshelf
to add the audiobookshelf user to the jellyfin group. That didn’t seem to work either.
This seems like a simple Linux permissions issue but I’m not sure of the most NixOS way to solve it, or if I should have defined the media folder in a different way that makes it more compatible with multiple services. Your thoughts are appreciated!