From 9052721d910f1cfebbf36517fe65e2ef3662e5c1 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Sat, 26 Oct 2024 13:08:28 +0530 Subject: [PATCH] layne: enable readarr --- hosts/layne/services/apps/default.nix | 1 + hosts/layne/services/apps/readarr.nix | 16 ++++++++++++++++ hosts/rico0/services/apps/blocky.nix | 1 + 3 files changed, 18 insertions(+) create mode 100644 hosts/layne/services/apps/readarr.nix diff --git a/hosts/layne/services/apps/default.nix b/hosts/layne/services/apps/default.nix index d405c50..97f7b20 100644 --- a/hosts/layne/services/apps/default.nix +++ b/hosts/layne/services/apps/default.nix @@ -4,6 +4,7 @@ _: { ./transmission.nix ./radarr.nix ./sonarr.nix + ./readarr.nix ./jackett.nix ../../../shared/prometheus-exporters.nix ../../../shared/promtail.nix diff --git a/hosts/layne/services/apps/readarr.nix b/hosts/layne/services/apps/readarr.nix new file mode 100644 index 0000000..48d0ebc --- /dev/null +++ b/hosts/layne/services/apps/readarr.nix @@ -0,0 +1,16 @@ +_: { + services = { + caddy.virtualHosts."readarr.labs.adtya.xyz" = { + extraConfig = '' + reverse_proxy 127.0.0.1:8787 + ''; + }; + readarr = { + enable = true; + dataDir = "/mnt/data/readarr"; + user = "mediaserver"; + group = "mediaserver"; + }; + }; + systemd.services.radarr.unitConfig.RequiresMountsFor = [ "/mnt/data" ]; +} diff --git a/hosts/rico0/services/apps/blocky.nix b/hosts/rico0/services/apps/blocky.nix index edd1f14..c293deb 100644 --- a/hosts/rico0/services/apps/blocky.nix +++ b/hosts/rico0/services/apps/blocky.nix @@ -80,6 +80,7 @@ in "jellyfin.labs.adtya.xyz" = "10.10.10.14"; "radarr.labs.adtya.xyz" = "10.10.10.14"; "sonarr.labs.adtya.xyz" = "10.10.10.14"; + "readarr.labs.adtya.xyz" = "10.10.10.14"; "jackett.labs.adtya.xyz" = "10.10.10.14"; "jellyfin.local.adtya.xyz" = "192.168.1.14"; };