Services/Sabnzbd: Split into separate instances for movies/shows
This commit is contained in:
@ -36,7 +36,8 @@
|
|||||||
../services/paperless.nix
|
../services/paperless.nix
|
||||||
../services/portainer-agent.nix
|
../services/portainer-agent.nix
|
||||||
../services/radarr.nix
|
../services/radarr.nix
|
||||||
../services/sabnzbd.nix
|
../services/sabnzbd-movies.nix
|
||||||
|
../services/sabnzbd-shows.nix
|
||||||
../services/sonarr.nix
|
../services/sonarr.nix
|
||||||
../services/teamspeak.nix
|
../services/teamspeak.nix
|
||||||
../services/tinymediamanager.nix
|
../services/tinymediamanager.nix
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
sabnzbdVersion = "4.5.5";
|
sabnzbdVersion = "4.5.5";
|
||||||
in {
|
in {
|
||||||
virtualisation.oci-containers.containers = {
|
virtualisation.oci-containers.containers = {
|
||||||
sabnzbd = {
|
sabnzbd-movies = {
|
||||||
image = "linuxserver/sabnzbd:${sabnzbdVersion}";
|
image = "linuxserver/sabnzbd:${sabnzbdVersion}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
@ -33,10 +33,8 @@ in {
|
|||||||
volumes = [
|
volumes = [
|
||||||
"/media/Movie/.sabnzbd:/media/movies/incomplete"
|
"/media/Movie/.sabnzbd:/media/movies/incomplete"
|
||||||
"/media/Movie/0-MakeMKV:/media/movies"
|
"/media/Movie/0-MakeMKV:/media/movies"
|
||||||
"/media/Show/.sabnzbd:/media/shows/incomplete"
|
|
||||||
"/media/Show/0-MakeMKV:/media/shows"
|
|
||||||
|
|
||||||
"sabnzbd_config:/config"
|
"sabnzbd-movies_config:/config"
|
||||||
];
|
];
|
||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
53
system/services/sabnzbd-shows.nix
Normal file
53
system/services/sabnzbd-shows.nix
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
sabnzbdVersion = "4.5.5";
|
||||||
|
in {
|
||||||
|
virtualisation.oci-containers.containers = {
|
||||||
|
sabnzbd-shows = {
|
||||||
|
image = "linuxserver/sabnzbd:${sabnzbdVersion}";
|
||||||
|
autoStart = true;
|
||||||
|
|
||||||
|
login = {
|
||||||
|
# Uses DockerHub by default
|
||||||
|
# registry = "";
|
||||||
|
|
||||||
|
# DockerHub Credentials
|
||||||
|
username = "christoph.urlacher@protonmail.com";
|
||||||
|
passwordFile = "${config.sops.secrets.docker-password.path}";
|
||||||
|
};
|
||||||
|
|
||||||
|
dependsOn = [];
|
||||||
|
|
||||||
|
ports = [
|
||||||
|
# NOTE: On initial start, the gui won't be reachable via reverse proxy,
|
||||||
|
# because the hostname has to be whitelisted.
|
||||||
|
# Edit the "sabnzbd.ini" in the docker volume and add the reverse-proxy address
|
||||||
|
# to the host_whitelist variable.
|
||||||
|
# "8080:8080"
|
||||||
|
];
|
||||||
|
|
||||||
|
volumes = [
|
||||||
|
"/media/Show/.sabnzbd:/media/shows/incomplete"
|
||||||
|
"/media/Show/0-MakeMKV:/media/shows"
|
||||||
|
|
||||||
|
"sabnzbd-shows_config:/config"
|
||||||
|
];
|
||||||
|
|
||||||
|
environment = {
|
||||||
|
PUID = "3000";
|
||||||
|
PGID = "3000";
|
||||||
|
TZ = "Europe/Berlin";
|
||||||
|
};
|
||||||
|
|
||||||
|
extraOptions = [
|
||||||
|
# "--privileged"
|
||||||
|
# "--device=nvidia.com/gpu=all"
|
||||||
|
"--net=behind-nginx"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user