- This installation method is still in testing.
- The module and the package are only available in the nixos-unstable channel currently, but will be added in the 23.11 release.
tagInstallation
Imperative installation:
nix-env -iA audiobookshelf
Declarative installation:
environment.systemPackages = with pkgs; [
audiobookshelf
];
tagConfiguration
You can configure Audiobookshelf using the parameters to the executable.
It supports the same configuration options you would pass to the Docker container,
the options below are the defaults if the option is missing.
audiobookshelf --metadata "$(pwd)/metadata" \
--config "$(pwd)/config" \
--port 8000 \
--host 0.0.0.0
If you use a reverse proxy (you should!) listing on localhost only would be enough.
In this case set --host 127.0.0.1
instead.
tagStart Audiobookshelf
You can create a simple systemd service in your configuration.nix
to automatically start
audiobookshelf:
services.audiobookshelf {
enable = true;
port = 8234;
};
For further options, see the NixOS options page.
To configure a reverse nginx proxy, add the following:
services.nginx = {
enable = true;
virtualHosts."your.hostname.org" = {
locations."/" = {
proxyPass = "http://localhost:8234/";
};
};
};
To check the current status of the service, run:
systemctl status audiobookshelf.service