From 1fd29c847b98f5c1b71ee68ca53a71765d7fcc6e Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Fri, 1 Nov 2024 19:21:04 +0530 Subject: [PATCH] layne: setup lidarr --- hosts/layne/services/apps/default.nix | 1 + hosts/layne/services/apps/lidarr.nix | 22 ++++++++++++++++++++++ hosts/shared/blocky.nix | 1 + 3 files changed, 24 insertions(+) create mode 100644 hosts/layne/services/apps/lidarr.nix diff --git a/hosts/layne/services/apps/default.nix b/hosts/layne/services/apps/default.nix index 3215b32..5fb6a60 100644 --- a/hosts/layne/services/apps/default.nix +++ b/hosts/layne/services/apps/default.nix @@ -7,6 +7,7 @@ _: { ./readarr.nix ./prowlarr.nix ./bazarr.nix + ./lidarr.nix ../../../shared/prometheus-exporters.nix ../../../shared/promtail.nix ]; diff --git a/hosts/layne/services/apps/lidarr.nix b/hosts/layne/services/apps/lidarr.nix new file mode 100644 index 0000000..b1ecc63 --- /dev/null +++ b/hosts/layne/services/apps/lidarr.nix @@ -0,0 +1,22 @@ +_: +let + inherit (import ../../../shared/caddy-helpers.nix) logFormat; +in +{ + services = { + caddy.virtualHosts."lidarr.labs.adtya.xyz" = { + inherit logFormat; + extraConfig = '' + reverse_proxy 127.0.0.1:8686 + ''; + }; + lidarr = { + enable = true; + dataDir = "/mnt/data/lidarr"; + user = "mediaserver"; + group = "mediaserver"; + }; + }; + systemd.services.lidarr.unitConfig.RequiresMountsFor = [ "/mnt/data" ]; +} + diff --git a/hosts/shared/blocky.nix b/hosts/shared/blocky.nix index d825fe8..94eafbd 100644 --- a/hosts/shared/blocky.nix +++ b/hosts/shared/blocky.nix @@ -73,6 +73,7 @@ "grafana.labs.adtya.xyz" = "10.10.10.12"; "homepage.labs.adtya.xyz" = "10.10.10.12"; "jellyfin.labs.adtya.xyz" = "10.10.10.14"; + "lidarr.labs.adtya.xyz" = "10.10.10.14"; "loki.labs.adtya.xyz" = "10.10.10.11"; "prometheus.labs.adtya.xyz" = "10.10.10.11"; "prowlarr.labs.adtya.xyz" = "10.10.10.14";