From 89b70fe6f7ce39de7575da3b88606838d698d16e Mon Sep 17 00:00:00 2001 From: Dominik Polakovics Date: Sun, 18 Jan 2026 20:41:17 +0100 Subject: [PATCH] feat: nas add audiobookshelf --- hosts/nas/configuration.nix | 2 ++ hosts/nas/modules/audiobookshelf.nix | 16 ++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 hosts/nas/modules/audiobookshelf.nix diff --git a/hosts/nas/configuration.nix b/hosts/nas/configuration.nix index 18da703..6a6add6 100644 --- a/hosts/nas/configuration.nix +++ b/hosts/nas/configuration.nix @@ -17,6 +17,7 @@ in { ./modules/cyberghost.nix ./modules/pyload.nix ./modules/jellyfin.nix + ./modules/audiobookshelf.nix ./modules/power-management.nix ./modules/disk-monitoring.nix ./modules/ugreen-leds.nix @@ -64,6 +65,7 @@ in { directories = [ "/var/lib/pyload" "/var/lib/jellyfin" + "/var/lib/audiobookshelf" "/var/log" "/var/lib/nixos" "/var/bento" diff --git a/hosts/nas/modules/audiobookshelf.nix b/hosts/nas/modules/audiobookshelf.nix new file mode 100644 index 0000000..7bc2fa6 --- /dev/null +++ b/hosts/nas/modules/audiobookshelf.nix @@ -0,0 +1,16 @@ +{ config, lib, pkgs, ... }: { + # Audiobookshelf user with jellyfin and pyload groups for multimedia access + users.users.audiobookshelf = { + isSystemUser = true; + group = "audiobookshelf"; + extraGroups = [ "jellyfin" "pyload" ]; + }; + users.groups.audiobookshelf = {}; + + services.audiobookshelf = { + enable = true; + openFirewall = true; # Opens default port 13378 + host = "0.0.0.0"; # Listen on all interfaces + port = 13378; + }; +}