From 2e72a7255eb0d53b21fd45ebc4fbb8d9b1bc470b Mon Sep 17 00:00:00 2001 From: Nathan McCarty Date: Mon, 10 Apr 2023 12:15:35 -0400 Subject: [PATCH] Add lidarr --- machines/perception/configuration.nix | 17 +++++++++++++++++ machines/tounge/configuration.nix | 11 +++++++++++ 2 files changed, 28 insertions(+) diff --git a/machines/perception/configuration.nix b/machines/perception/configuration.nix index 53e368d..c77e23c 100644 --- a/machines/perception/configuration.nix +++ b/machines/perception/configuration.nix @@ -148,10 +148,27 @@ ]; dependsOn = [ "sabnzbd" "plex" ]; }; + # Configure lidarr + "lidarr" = { + image = "lscr.io/linuxserver/lidarr:latest"; + environment = { + "PUID" = "1000"; + "PGID" = "1000"; + "TZ" = "America/New_York"; + }; + ports = [ "8686:8686" ]; + volumes = [ + "/var/lib/lidarr:/config" + "/mnt/plex:/music" + "/mnt/scratch/sabnzbd/download-complete:/downloads" + ]; + dependsOn = [ "sabnzbd" ]; + }; }; # Make the containers depend on their mounts systemd.services = { "podman-plex" = { requires = [ "mnt-plex.mount" ]; }; "podman-sabnzbd" = { requires = [ "mnt-scratch.mount" ]; }; + "podman-lidarr" = { requires = [ "mnt-music.mount" ]; }; }; } diff --git a/machines/tounge/configuration.nix b/machines/tounge/configuration.nix index 742b9a7..25120a2 100644 --- a/machines/tounge/configuration.nix +++ b/machines/tounge/configuration.nix @@ -140,6 +140,17 @@ ''; }; }; + "lidarr.mccarty.io" = { + forceSSL = true; + useACMEHost = "mccarty.io"; + locations."/" = { + proxyPass = "http://100.121.150.78:8686"; + extraConfig = '' + allow 100.64.0.0/10; + deny all; + ''; + }; + }; "tautulli.mccarty.io" = { forceSSL = true; useACMEHost = "mccarty.io";