Files
homelab/services/media/audiobookshelf.nix
T
darmanandClaude Sonnet 5 6f24ab69ad docs: condense comments across the repo
Comments had drifted into multi-paragraph narrative (git commit
lineage, debugging stories, restated code) in several hot spots
(scripts/deploy, hermes-agent.nix, flake.nix, gitea.nix, headscale.nix).
Trim every comment to its load-bearing "why" — gotchas, safety
warnings, and non-obvious rationale survive verbatim in substance,
just tightened to 1-2 sentences; historical narrative and anything
already covered in CLAUDE.md is cut. No code/logic changed.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UJqEmY1y3AYX3JoX4Y6b21
2026-09-18 21:36:30 +02:00

20 lines
741 B
Nix

{ ... }:
# Audiobookshelf audiobook/podcast server, listening on all interfaces but
# reachable only via tailscale0 or local caddy (no openFirewall) — library
# paths are set in the web UI, pointed at /mnt/data/... In the "users" group
# so it can read the RAID's group-owned library dirs.
{
services.audiobookshelf = {
enable = true;
host = "0.0.0.0";
port = 8000;
};
users.users.audiobookshelf.extraGroups = [ "users" ];
# Its state dir is on the eMMC, so systemd sees no reason to wait for the
# array — but every library path points into /mnt/data. Starting without it
# means an empty library and rescans against nothing.
systemd.services.audiobookshelf.unitConfig.RequiresMountsFor = [ "/mnt/data" ];
}