layne: setup lidarr

This commit is contained in:
Adithya 2024-11-01 19:21:04 +05:30
parent 7e920c9aed
commit 1fd29c847b
Signed by: adtya
GPG key ID: B8857BFBA2C47B9C
3 changed files with 24 additions and 0 deletions

View file

@ -7,6 +7,7 @@ _: {
./readarr.nix
./prowlarr.nix
./bazarr.nix
./lidarr.nix
../../../shared/prometheus-exporters.nix
../../../shared/promtail.nix
];

View file

@ -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" ];
}

View file

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