2021-10-03 12:29:19 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
2021-10-03 16:30:35 +02:00
|
|
|
virtualisation.oci-containers.containers = {
|
|
|
|
"transmission" = {
|
|
|
|
image = "haugene/transmission-openvpn";
|
|
|
|
environmentFiles = [ /run/secrets/nordvpn ];
|
|
|
|
environment = {
|
|
|
|
"LOCAL_NETWORK" = "192.168.0.0/24";
|
|
|
|
"OPENVPN_PROVIDER" = "NORDVPN";
|
2021-10-03 19:00:06 +02:00
|
|
|
"TRANSMISSION_ALT_SPEED_DOWN" = "70000";
|
2021-10-03 16:30:35 +02:00
|
|
|
"TRANSMISSION_ALT_SPEED_TIME_ENABLED" = "true";
|
|
|
|
"TRANSMISSION_ALT_SPEED_UP" = "2000";
|
|
|
|
"TRANSMISSION_MAX_PEERS_GLOBAL" = "1000";
|
|
|
|
"TRANSMISSION_PEER_LIMIT_GLOBAL" = "1000";
|
|
|
|
"TRANSMISSION_PEER_LIMIT_PER_TORRENT" = "100";
|
|
|
|
"TRANSMISSION_RATIO_LIMIT" = "10";
|
|
|
|
"TRANSMISSION_RATIO_LIMIT_ENABLED" = "true";
|
|
|
|
"TZ" = "DE";
|
|
|
|
"ENABLE_UFW" = "true";
|
2021-10-03 17:51:19 +02:00
|
|
|
"UFW_ALLOW_GW_NET" = "true";
|
2021-10-03 16:30:35 +02:00
|
|
|
"PUID" = "1000";
|
|
|
|
"PGID" = "100";
|
2021-10-03 12:29:19 +02:00
|
|
|
};
|
2021-10-03 16:30:35 +02:00
|
|
|
ports = [ "9091:9091" ];
|
|
|
|
volumes = [ "/home/moritz/Docker/Transmission:/data/" ];
|
|
|
|
extraOptions = [ "--cap-add=NET_ADMIN" ];
|
2021-10-03 12:29:19 +02:00
|
|
|
};
|
2021-10-03 16:30:35 +02:00
|
|
|
|
|
|
|
"jackett" = {
|
|
|
|
image = "linuxserver/jackett";
|
|
|
|
environment = {
|
|
|
|
"PUID" = "1000";
|
|
|
|
"PGID" = "100";
|
|
|
|
"TZ" = "DE";
|
2021-10-03 12:29:19 +02:00
|
|
|
};
|
2021-10-03 16:30:35 +02:00
|
|
|
volumes = [
|
2021-10-03 17:51:10 +02:00
|
|
|
"/home/moritz/Docker/Jackett/config:/config"
|
|
|
|
"/home/moritz/Docker/Jackett/blackhole:/downloads"
|
2021-10-03 16:30:35 +02:00
|
|
|
];
|
|
|
|
ports = [ "9117:9117" ];
|
2021-10-03 12:29:19 +02:00
|
|
|
};
|
|
|
|
|
2021-10-03 16:30:35 +02:00
|
|
|
"radarr" = {
|
|
|
|
image = "linuxserver/radarr";
|
|
|
|
environment = {
|
|
|
|
"PUID" = "1000";
|
|
|
|
"PGID" = "100";
|
|
|
|
"TZ" = "DE";
|
2021-10-03 12:29:19 +02:00
|
|
|
};
|
2021-10-03 16:30:35 +02:00
|
|
|
volumes = [
|
2021-10-03 18:59:35 +02:00
|
|
|
"/media/media/movies:/movies"
|
2021-10-03 17:51:10 +02:00
|
|
|
"/home/moritz/Docker/Transmission/completed/movies:/downloads"
|
|
|
|
"/home/moritz/Docker/Radarr:/config"
|
2021-10-03 16:30:35 +02:00
|
|
|
];
|
|
|
|
ports = [ "7878:7878" ];
|
2021-10-03 12:29:19 +02:00
|
|
|
};
|
2021-10-03 16:30:35 +02:00
|
|
|
"sonarr" = {
|
|
|
|
image = "linuxserver/sonarr";
|
|
|
|
environment = {
|
|
|
|
"PUID" = "1000";
|
|
|
|
"PGID" = "100";
|
|
|
|
"TZ" = "DE";
|
|
|
|
};
|
|
|
|
volumes = [
|
2021-10-03 18:59:35 +02:00
|
|
|
"/media/media/tv:/tv"
|
2021-10-03 17:51:10 +02:00
|
|
|
"/home/moritz/Docker/Transmission/completed/tv:/downloads"
|
|
|
|
"/home/moritz/Docker/Sonarr:/config"
|
2021-10-03 16:30:35 +02:00
|
|
|
];
|
|
|
|
ports = [ "8989:8989" ];
|
2021-10-03 12:29:19 +02:00
|
|
|
};
|
2021-10-06 16:56:27 +02:00
|
|
|
"bazarr" = {
|
|
|
|
image = "linuxserver/bazarr";
|
|
|
|
environment = {
|
|
|
|
"PUID" = "1000";
|
|
|
|
"PGID" = "100";
|
|
|
|
"TZ" = "DE";
|
|
|
|
};
|
|
|
|
volumes = [
|
|
|
|
"/media/media/tv:/tv"
|
|
|
|
"/media/media/movies:/movies"
|
|
|
|
"/home/moritz/Docker/Bazarr:/config"
|
|
|
|
];
|
|
|
|
ports = [ "6767:6767" ];
|
|
|
|
};
|
2021-10-03 12:29:19 +02:00
|
|
|
};
|
|
|
|
}
|