From 1fefef3403332a170629cb94ed2eaf944989d855 Mon Sep 17 00:00:00 2001 From: cnst Date: Sun, 20 Jul 2025 19:08:39 +0200 Subject: [PATCH] qbt --- hosts/sobotka/modules.nix | 2 +- modules/default.nix | 2 +- .../{deluge => qbittorrent}/default.nix | 21 ++++++++++--------- 3 files changed, 13 insertions(+), 12 deletions(-) rename modules/server/{deluge => qbittorrent}/default.nix (83%) diff --git a/hosts/sobotka/modules.nix b/hosts/sobotka/modules.nix index 6059c074..9768dbaa 100644 --- a/hosts/sobotka/modules.nix +++ b/hosts/sobotka/modules.nix @@ -30,7 +30,7 @@ enable = true; interfaces = { "enp6s0" = { - allowedTCPPorts = [22 80 443 8112]; + allowedTCPPorts = [22 80 443 8090]; allowedUDPPorts = [58846 6881]; }; }; diff --git a/modules/default.nix b/modules/default.nix index a3aeca93..587329cb 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -126,7 +126,7 @@ ./server/vaultwarden ./server/prowlarr ./server/lidarr - ./server/deluge + ./server/qbittorrent ./server/wireguard-netns ]; }; diff --git a/modules/server/deluge/default.nix b/modules/server/qbittorrent/default.nix similarity index 83% rename from modules/server/deluge/default.nix rename to modules/server/qbittorrent/default.nix index 41e2f238..7b836891 100644 --- a/modules/server/deluge/default.nix +++ b/modules/server/qbittorrent/default.nix @@ -3,19 +3,19 @@ lib, ... }: let - cfg = config.server.deluge; - url = "https://deluge.${config.server.domain}"; - port = 8112; + cfg = config.server.qbittorrent; + url = "https://qbt.${config.server.domain}"; + port = 8090; in { options.server.deluge = { enable = lib.mkEnableOption "Enable Deluge"; url = lib.mkOption { type = lib.types.str; - default = "deluge.${config.server.domain}"; + default = "qbt.${config.server.domain}"; }; homepage.name = lib.mkOption { type = lib.types.str; - default = "Deluge"; + default = "qBittorrent"; }; homepage.description = lib.mkOption { type = lib.types.str; @@ -23,7 +23,7 @@ in { }; homepage.icon = lib.mkOption { type = lib.types.str; - default = "deluge.svg"; + default = "qbittorrent.svg"; }; homepage.category = lib.mkOption { type = lib.types.str; @@ -42,12 +42,12 @@ in { virtualisation.podman.enable = true; virtualisation.oci-containers.containers = { - deluge = { - image = "linuxserver/deluge:latest"; + qbittorrent = { + image = "linuxserver/qbittorrent:latest"; autoStart = true; dependsOn = ["gluetun"]; ports = [ - "8112:8112" + "8090:8090" "58846:58846" ]; extraOptions = [ @@ -64,6 +64,7 @@ in { PUID = "1000"; PGID = "1000"; TZ = "Etc/UTC"; + WEBUI_PORT = "${builtins.toString cfg.port}"; }; }; @@ -72,7 +73,7 @@ in { ports = [ "8388:8388" "58846:58846" - "8112:8112" + "8090:8090" ]; devices = ["/dev/net/tun:/dev/net/tun"]; autoStart = true;