From 84e81d9642ce19b9c1f5051eb9fdfc01fe0cb263 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Wed, 1 Jan 2025 15:30:40 -0600 Subject: [PATCH] Add audiobookshelf. --- hosts/hub/apps/audiobookshelf.nix | 12 ++++++++++++ hosts/hub/default.nix | 1 + 2 files changed, 13 insertions(+) create mode 100644 hosts/hub/apps/audiobookshelf.nix diff --git a/hosts/hub/apps/audiobookshelf.nix b/hosts/hub/apps/audiobookshelf.nix new file mode 100644 index 0000000..8ed3581 --- /dev/null +++ b/hosts/hub/apps/audiobookshelf.nix @@ -0,0 +1,12 @@ +{ pkgs, ... }: + +{ + services = { + audiobookshelf.enable = true; + caddy.virtualHosts."https://audiobookshelf.tailc50184.ts.net".extraConfig = '' + bind tailscale/audiobookshelf + reverse_proxy localhost:8000 + ''; + }; + environment.systemPackages = with pkgs; [ audible-cli ]; +} diff --git a/hosts/hub/default.nix b/hosts/hub/default.nix index ba91d27..e7855eb 100644 --- a/hosts/hub/default.nix +++ b/hosts/hub/default.nix @@ -25,6 +25,7 @@ ./apps/searxng.nix ./apps/actual.nix ./apps/adguard.nix + ./apps/audiobookshelf.nix ]; boot.loader.grub = {