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";