add deluge

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
2024-08-16 12:15:42 -04:00
parent bc2639c272
commit 58906d95ea
4 changed files with 74 additions and 6 deletions

View File

@ -13,15 +13,13 @@
./nextcloud.nix
./postgres.nix
./restic.nix
./torr.nix
./unifi.nix
];
virtualisation.oci-containers.backend = "docker";
virtualisation.docker.daemon.settings.data-root = "/var/lib/docker2";
# "firefly-iii-fidi-1 fireflyiii/data-importer:latest"
# "firefly-iii-app-1 fireflyiii/core:latest"
# "haproxy-haproxy-1 haproxy:latest"
# "calibre-web lscr.io/linuxserver/calibre-web:latest"
# "glances-glances-1 nicolargo/glances:latest-full"

View File

@ -18,7 +18,7 @@
extraOptions = [ "--restart=always" ];
environmentFiles = [ "/ZFS/ZFS-primary/docker/firefly-iii/.fidi.env" ];
ports = [ "4187:8080" ];
depends_on = [ "firefly" ];
dependsOn = [ "firefly" ];
};
};
}

View File

@ -0,0 +1,69 @@
{ ... }:
let
delugeBase = {
image = "binhex/arch-deluge";
environment = {
PUID = "600";
PGID = "100";
TZ = "America/New_York";
UMASK = "000";
DEBUG = "false";
DELUGE_DAEMON_LOG_LEVEL = "debug";
DELUGE_WEB_LOG_LEVEL = "debug";
};
extraOptions = [ "--restart=unless-stopped" ];
};
in
{
virtualisation.oci-containers.containers = {
deluge = delugeBase // {
volumes = [
"/ZFS/ZFS-primary/docker/Qbit:/config"
"/ZFS/ZFS-primary/torr/Qbit/:/data"
"/etc/localtime:/etc/localtime:ro"
];
ports = [
"8082:8112"
"29432:29432"
];
};
delugeVPN = delugeBase // {
extraOptions = [
"--restart=unless-stopped"
"--privileged=true"
"--sysctl"
"net.ipv4.conf.all.src_valid_mark=1"
];
environment = delugeBase.environment // {
VPN_ENABLED = "yes";
VPN_CLIENT = "wireguard";
VPN_PROV = "custom";
ENABLE_PRIVOXY = "yes";
LAN_NETWORK = "192.168.0.0/16";
NAME_SERVERS = "9.9.9.9,1.1.1.1,8.8.8.8,8.8.4.4";
# note, delete /config/perms.txt to force a bulk permissions update
};
volumes = [
"/ZFS/ZFS-primary/docker/QbitVPN:/config"
"/ZFS/ZFS-primary/torr/QbitVPN/:/data"
"/etc/localtime:/etc/localtime:ro"
];
ports = [
"8081:8112"
"8118:8118"
"39274:39274"
"39274:39274/udp"
];
};
};
sops.secrets = {
"docker/deluge" = {
owner = "docker-service";
path = "/ZFS/ZFS-primary/docker/QbitVPN/wireguard/wg0.conf";
};
};
}