try torrent setup
This commit is contained in:
@ -38,6 +38,7 @@ in {
|
||||
sops.secrets."restic_ssh_key" = {};
|
||||
sops.secrets."restic_documents_repository_password" = {};
|
||||
sops.secrets."restic_images_repository_password" = {};
|
||||
sops.secrets."protonvpn_wg_private_key" = {};
|
||||
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
@ -268,6 +269,10 @@ in {
|
||||
subdomain = "immich";
|
||||
port = 2283;
|
||||
}
|
||||
{
|
||||
subdomain = "qbittorrent";
|
||||
port = 8080;
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
@ -467,6 +472,40 @@ in {
|
||||
"/tank/dump:/output"
|
||||
];
|
||||
};
|
||||
|
||||
gluetun = {
|
||||
image = "docker.io/qmcgaw/gluetun";
|
||||
autoStart = true;
|
||||
environment = {
|
||||
VPN_SERVICE_PROVIDER = "protonvpn";
|
||||
VPN_TYPE = "wireguard";
|
||||
SERVER_COUNTRIES = "Switzerland";
|
||||
WIREGUARD_ADDRESSES = "10.2.0.2/32";
|
||||
DNS_ADDRESS = "10.2.0.1";
|
||||
};
|
||||
environmentFiles = [
|
||||
config.sops.secrets."protonvpn_wg_private_key".path
|
||||
];
|
||||
capabilities = {
|
||||
NET_ADMIN = true;
|
||||
};
|
||||
devices = ["/dev/net/tun"];
|
||||
ports = ["127.0.0.1:8080:8080"];
|
||||
};
|
||||
|
||||
qbittorrent = {
|
||||
image = "lscr.io/linuxserver/qbittorrent:latest";
|
||||
autoStart = false;
|
||||
networks = ["container:gluetun"];
|
||||
environment = {
|
||||
WEBUI_PORT = "8080";
|
||||
};
|
||||
dependsOn = ["gluetun"];
|
||||
volumes = [
|
||||
"/var/lib/qbittorrent:/config"
|
||||
"/tank/dump/torrent:/downloads"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -494,6 +533,10 @@ in {
|
||||
StateDirectory = "dnscrypt-proxy";
|
||||
};
|
||||
|
||||
podman-qbittorrent.serviceConfig = {
|
||||
StateDirectory = "qbittorrent";
|
||||
};
|
||||
|
||||
ensure-radarr-perms = ensure-perms "/tank/video/movie" "radarr" "nas";
|
||||
ensure-sonarr-perms = ensure-perms "/tank/video/series" "sonarr" "nas";
|
||||
ensure-lidarr-perms = ensure-perms "/tank/audio" "lidarr" "nas";
|
||||
|
Reference in New Issue
Block a user