feat: nas add audiobookshelf
This commit is contained in:
@@ -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"
|
||||
|
||||
16
hosts/nas/modules/audiobookshelf.nix
Normal file
16
hosts/nas/modules/audiobookshelf.nix
Normal file
@@ -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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user