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