From 9f5c9ecdd9d51cc512c275874e1c4e607d0dea8a Mon Sep 17 00:00:00 2001 From: Tibo De Peuter Date: Fri, 5 Sep 2025 10:30:57 +0200 Subject: [PATCH] chore(arr): Remove lidarr config --- hosts/ProductionArr/default.nix | 8 +---- modules/apps/arr/default.nix | 59 +-------------------------------- 2 files changed, 2 insertions(+), 65 deletions(-) diff --git a/hosts/ProductionArr/default.nix b/hosts/ProductionArr/default.nix index 929750a..ff4f4c2 100644 --- a/hosts/ProductionArr/default.nix +++ b/hosts/ProductionArr/default.nix @@ -4,13 +4,7 @@ config = { homelab = { apps = { - arr = { - bazarr.enable = true; - prowlarr.enable = true; - qbittorrent.enable = true; - radarr.enable = true; - sonarr.enable = true; - }; + arr.enable = true; traefik.enable = true; }; virtualisation.guest.enable = true; diff --git a/modules/apps/arr/default.nix b/modules/apps/arr/default.nix index cedd01e..0ce41a3 100644 --- a/modules/apps/arr/default.nix +++ b/modules/apps/arr/default.nix @@ -6,7 +6,7 @@ let networkName = "arrStack"; proxyNet = config.homelab.apps.traefik.sharedNetworkName; - appNames = [ "bazarr" "lidarr" "prowlarr" "qbittorrent" "radarr" "sonarr" ]; + appNames = [ "bazarr" "prowlarr" "qbittorrent" "radarr" "sonarr" ]; inUse = builtins.any (app: cfg.${app}.enable) appNames; PGID = toString config.users.groups.media.gid; @@ -16,7 +16,6 @@ in { enable = lib.mkEnableOption "Arr Stack using Docker"; bazarr.enable = lib.mkEnableOption "Bazarr using Docker"; - lidarr.enable = lib.mkEnableOption "Lidarr using Docker"; prowlarr.enable = lib.mkEnableOption "Prowlarr using Docker"; qbittorrent.enable = lib.mkEnableOption "qBittorrent using Docker"; radarr.enable = lib.mkEnableOption "Radarr using Docker"; @@ -33,7 +32,6 @@ in { # "Master switch": Enable all apps. apps.arr = lib.mkIf cfg.enable { bazarr.enable = true; - lidarr.enable = true; prowlarr.enable = true; qbittorrent.enable = true; radarr.enable = true; @@ -63,20 +61,6 @@ in { ]; }; - "/srv/lidarr-backup" = lib.mkIf cfg.lidarr.enable { - device = "192.168.0.11:/mnt/BIG/BACKUP/LIDARR"; - fsType = "nfs"; - options = [ - "rw" - "auto" - "nfsvers=4.2" - "rsize=1048576" "wsize=1048576" - "hard" - "timeo=600" "retrans=2" - "_netdev" "nosuid" "tcp" - ]; - }; - "/srv/prowlarr-backup" = lib.mkIf cfg.prowlarr.enable { device = "192.168.0.11:/mnt/BIG/BACKUP/PROWLARR"; fsType = "nfs"; @@ -153,7 +137,6 @@ in { description = "Create Docker network for ${networkName}"; requiredBy = [ "docker-bazarr.service" - "docker-lidarr.service" "docker-prowlarr.service" "docker-qbittorrent.service" "docker-radarr.service" @@ -179,13 +162,6 @@ in { home = "/var/empty"; shell = null; }; - lidarr = lib.mkIf cfg.lidarr.enable { - uid = lib.mkForce 3002; - isSystemUser = true; - group = config.users.groups.media.name; - home = "/var/empty"; - shell = null; - }; prowlarr = lib.mkIf cfg.prowlarr.enable { uid = lib.mkForce 3004; isSystemUser = true; @@ -259,39 +235,6 @@ in { }; }; - lidarr = let - port = 8686; - in lib.mkIf cfg.lidarr.enable { - hostname = "lidarr"; - image = "ghcr.io/hotio/lidarr:release-2.5.3.4341"; - autoStart = true; - ports = [ - # Open ports if you don't use Traefik - # "${toString port}:${toString port}/tcp" - ]; - extraOptions = [ - "--network=${networkName}" - "--network=${proxyNet}" - ]; - environment = { - PUID = toString config.users.users.lidarr.uid; - inherit PGID UMASK; - TZ = config.time.timeZone; - }; - volumes = [ - "lidarr-config:/config" - - # TODO Fix path - "/srv/lidarr-backup:/media/Backups" - ]; - labels = { - "traefik.enable" = "true"; - "traefik.docker.network" = proxyNet; - "traefik.http.routers.lidarr.rule" = "Host(`lidarr.depeuter.dev`)"; - "traefik.http.services.lidarr.loadbalancer.server.port" = toString port; - }; - }; - prowlarr = let port = 9696; in lib.mkIf cfg.prowlarr.enable {