From f61211f134556bc2929cf79adf29101e584ab2af Mon Sep 17 00:00:00 2001 From: Jordan Holt Date: Tue, 30 May 2023 22:00:39 +0100 Subject: [PATCH] Add sonarr, radarr, and torrent client --- hosts/library/default.nix | 44 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/hosts/library/default.nix b/hosts/library/default.nix index b4f122d..736c441 100644 --- a/hosts/library/default.nix +++ b/hosts/library/default.nix @@ -112,6 +112,50 @@ with lib.my; ]; dependsOn = [ "jellyfin" ]; }; + qbittorrent = { + image = "lscr.io/linuxserver/qbittorrent:latest"; + autoStart = true; + ports = [ + "8080:8080/tcp" + "6881:6881/tcp" + "6881:6881/udp" + ]; + volumes = [ + "qbittorrent-config:/config:Z" + "downloads:/downloads" + ]; + extraOptions = [ + "--label=io.containers.autoupdate=registry" + ]; + }; + radarr = { + image = "lscr.io/linuxserver/radarr:latest"; + autoStart = true; + ports = [ "7878:7078/tcp" ]; + volumes = [ + "radarr-config:/config:Z" + "downloads:/downloads" + ]; + extraOptions = [ + "--label=io.containers.autoupdate=registry" + "--mount=type=bind,source=/mnt/library/movies,target=/movies" + ]; + dependsOn = [ "qbittorrent" ]; + }; + sonarr = { + image = "lscr.io/linuxserver/sonarr:latest"; + autoStart = true; + ports = [ "8989:8989/tcp" ]; + volumes = [ + "sonarr-config:/config:Z" + "downloads:/downloads" + ]; + extraOptions = [ + "--label=io.containers.autoupdate=registry" + "--mount=type=bind,source=/mnt/library/tv,target=/tv" + ]; + dependsOn = [ "qbittorrent" ]; + }; }; modules = {