Personal-use NixOS configuration
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Make audiobookshelf work

encode42 5862246a 69b92011

+12 -2
+3 -1
hosts/index/config/media/audiobookshelf.nix
··· 1 - { flakeRoot, ... }: 1 + { flakeRoot, config, lib, ... }: 2 2 3 3 let 4 4 audiobookshelfModule = import (flakeRoot + /packages/server/media/audiobookshelf.nix) { ··· 24 24 services.audiobookshelf = { 25 25 dataDir = "/mnt/apps/audiobookshelf"; 26 26 }; 27 + 28 + systemd.services.audiobookshelf.serviceConfig.WorkingDirectory = lib.mkForce config.services.audiobookshelf.dataDir; 27 29 }
+1 -1
hosts/index/default.nix
··· 29 29 ./config/groupware/cells.nix 30 30 ./config/groupware/maddy.nix 31 31 32 - #./config/media/audiobookshelf.nix 32 + ./config/media/audiobookshelf.nix 33 33 #./config/media/emby.nix 34 34 ./config/media/navidrome.nix 35 35
+8
packages/server/media/audiobookshelf.nix
··· 11 11 host = "unix//run/audiobookshelf/audiobookshelf.sock"; 12 12 }; 13 13 14 + systemd.services.audiobookshelf.serviceConfig = { 15 + RuntimeDirectory = "audiobookshelf"; 16 + RuntimeDirectoryMode = "0750"; 17 + UMask = "0007"; 18 + }; 19 + 20 + users.users.caddy.extraGroups = [ "audiobookshelf" ]; 21 + 14 22 services.caddy.virtualHosts = flakeLib.mkProxies hosts '' 15 23 reverse_proxy ${config.services.audiobookshelf.host} 16 24 '';