qbt
This commit is contained in:
@@ -30,7 +30,7 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
interfaces = {
|
interfaces = {
|
||||||
"enp6s0" = {
|
"enp6s0" = {
|
||||||
allowedTCPPorts = [22 80 443 8112];
|
allowedTCPPorts = [22 80 443 8090];
|
||||||
allowedUDPPorts = [58846 6881];
|
allowedUDPPorts = [58846 6881];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -126,7 +126,7 @@
|
|||||||
./server/vaultwarden
|
./server/vaultwarden
|
||||||
./server/prowlarr
|
./server/prowlarr
|
||||||
./server/lidarr
|
./server/lidarr
|
||||||
./server/deluge
|
./server/qbittorrent
|
||||||
./server/wireguard-netns
|
./server/wireguard-netns
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -3,19 +3,19 @@
|
|||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
cfg = config.server.deluge;
|
cfg = config.server.qbittorrent;
|
||||||
url = "https://deluge.${config.server.domain}";
|
url = "https://qbt.${config.server.domain}";
|
||||||
port = 8112;
|
port = 8090;
|
||||||
in {
|
in {
|
||||||
options.server.deluge = {
|
options.server.deluge = {
|
||||||
enable = lib.mkEnableOption "Enable Deluge";
|
enable = lib.mkEnableOption "Enable Deluge";
|
||||||
url = lib.mkOption {
|
url = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
default = "deluge.${config.server.domain}";
|
default = "qbt.${config.server.domain}";
|
||||||
};
|
};
|
||||||
homepage.name = lib.mkOption {
|
homepage.name = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
default = "Deluge";
|
default = "qBittorrent";
|
||||||
};
|
};
|
||||||
homepage.description = lib.mkOption {
|
homepage.description = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
@@ -23,7 +23,7 @@ in {
|
|||||||
};
|
};
|
||||||
homepage.icon = lib.mkOption {
|
homepage.icon = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
default = "deluge.svg";
|
default = "qbittorrent.svg";
|
||||||
};
|
};
|
||||||
homepage.category = lib.mkOption {
|
homepage.category = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
@@ -42,12 +42,12 @@ in {
|
|||||||
virtualisation.podman.enable = true;
|
virtualisation.podman.enable = true;
|
||||||
|
|
||||||
virtualisation.oci-containers.containers = {
|
virtualisation.oci-containers.containers = {
|
||||||
deluge = {
|
qbittorrent = {
|
||||||
image = "linuxserver/deluge:latest";
|
image = "linuxserver/qbittorrent:latest";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
dependsOn = ["gluetun"];
|
dependsOn = ["gluetun"];
|
||||||
ports = [
|
ports = [
|
||||||
"8112:8112"
|
"8090:8090"
|
||||||
"58846:58846"
|
"58846:58846"
|
||||||
];
|
];
|
||||||
extraOptions = [
|
extraOptions = [
|
||||||
@@ -64,6 +64,7 @@ in {
|
|||||||
PUID = "1000";
|
PUID = "1000";
|
||||||
PGID = "1000";
|
PGID = "1000";
|
||||||
TZ = "Etc/UTC";
|
TZ = "Etc/UTC";
|
||||||
|
WEBUI_PORT = "${builtins.toString cfg.port}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -72,7 +73,7 @@ in {
|
|||||||
ports = [
|
ports = [
|
||||||
"8388:8388"
|
"8388:8388"
|
||||||
"58846:58846"
|
"58846:58846"
|
||||||
"8112:8112"
|
"8090:8090"
|
||||||
];
|
];
|
||||||
devices = ["/dev/net/tun:/dev/net/tun"];
|
devices = ["/dev/net/tun:/dev/net/tun"];
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
Reference in New Issue
Block a user