From 625a22cccf52dcf7499c488a9160eb3c1aada4c2 Mon Sep 17 00:00:00 2001 From: ChUrl Date: Fri, 5 May 2023 12:31:54 +0200 Subject: [PATCH] Add Radarr + Hydra containers and use vpn netns for containers --- config/rofi/menus/containers.txt | 2 ++ system/nixinator/default.nix | 54 ++++++++++++++++++++++++++++---- 2 files changed, 50 insertions(+), 6 deletions(-) diff --git a/config/rofi/menus/containers.txt b/config/rofi/menus/containers.txt index f3412a22..6dddf0cd 100644 --- a/config/rofi/menus/containers.txt +++ b/config/rofi/menus/containers.txt @@ -1,5 +1,7 @@ jellyfin sonarr +radarr +hydra sabnzbd homeassistant picard diff --git a/system/nixinator/default.nix b/system/nixinator/default.nix index 13fa1f02..90c074d0 100644 --- a/system/nixinator/default.nix +++ b/system/nixinator/default.nix @@ -78,9 +78,11 @@ volumes = [ "jellyfin-cache:/cache:Z" "jellyfin-config:/config:Z" - "/home/christoph/Videos/Movies:/media/Movies:ro" - "/home/christoph/Videos/Photos:/media/Photos:ro" - "/home/christoph/Videos/Shows:/media/Shows:ro" + "/home/christoph/Videos/Movies:/media/Movies" + "/home/christoph/Videos/Shows:/media/Shows" + "/home/christoph/Videos/Video:/media/Video" + "/home/christoph/Videos/Picture:/media/Picture" + "/home/christoph/Videos/Concerts:/media/Concerts" # "/home/christoph/Music/Spotify:/media/Music:ro" ]; }; @@ -89,9 +91,9 @@ image = "linuxserver/sonarr"; autoStart = false; - # TODO: When running through the namespace, sonarr can't reach the indexer/downloader extraOptions = [ - # "--network=ns:/var/run/netns/vpn" + "--network=ns:/var/run/netns/vpn" + "--dns=10.2.0.1" ]; ports = [ @@ -105,12 +107,52 @@ ]; }; + radarr = { + image = "linuxserver/radarr"; + autoStart = false; + + extraOptions = [ + "--network=ns:/var/run/netns/vpn" + "--dns=10.2.0.1" + ]; + + ports = [ + "7878:7878" + ]; + + volumes = [ + "radarr-config:/config:Z" + "/home/christoph/Videos/Movies:/movies" + "/home/christoph/Videos/SabNzbd:/downloads" + ]; + }; + + hydra = { + image = "linuxserver/nzbhydra2"; + autoStart = false; + + extraOptions = [ + "--network=ns:/var/run/netns/vpn" + "--dns=10.2.0.1" + ]; + + ports = [ + "5076:5076" + ]; + + volumes = [ + "hydra-config:/config:Z" + "/home/christoph/Videos/SabNzbd:/downloads" + ]; + }; + sabnzbd = { image = "linuxserver/sabnzbd"; autoStart = false; extraOptions = [ - # "--network=ns:/var/run/netns/vpn" + "--network=ns:/var/run/netns/vpn" + "--dns=10.2.0.1" ]; ports = [