From 2304b7899a2528519ce2634afb40d1be458c69c3 Mon Sep 17 00:00:00 2001 From: C4 Patino Date: Sat, 13 Jun 2026 14:29:31 -0500 Subject: [PATCH] feat: add extra qbittorrent configuration for upload and download management --- .../networking/qbittorrent/default.nix | 46 ++++++++++++++++++- systems/x86_64-linux/shiori/default.nix | 5 ++ 2 files changed, 49 insertions(+), 2 deletions(-) diff --git a/modules/nixos/services/networking/qbittorrent/default.nix b/modules/nixos/services/networking/qbittorrent/default.nix index 4eaabd2..1cfd100 100644 --- a/modules/nixos/services/networking/qbittorrent/default.nix +++ b/modules/nixos/services/networking/qbittorrent/default.nix @@ -54,19 +54,61 @@ in { torrentingPort = torrentingPort; serverConfig = { + LegalNotice.Accepted = true; + BitTorrent.Session = { Interface = "tun0"; InterfaceName = "tun0"; BTProtocol = "Both"; + + Preallocation = true; + + DHTEnabled = true; + PeXEnabled = true; + LSDEnabled = false; + + BandwidthSchedulerEnabled = true; + GlobalDLSpeedLimit = 0; + GlobalUPSpeedLimit = 0; + AlternativeGlobalDLSpeedLimit = 1024; + AlternativeGlobalUPSpeedLimit = 1024; + + DisableAutoTMMByDefault = false; + DisableAutoTMMTriggers = { + CategorySavePathChanged = false; + DefaultSavePathChanged = false; + }; + + QueueingSystemEnabled = true; + IgnoreSlowTorrentsForQueueing = true; + MaxActiveDownloads = 8; + MaxActiveTorrents = 64; + MaxActiveUploads = 64; + + MaxConnections = -1; + MaxConnectionsPerTorrent = -1; + MaxUploads = -1; + MaxUploadsPerTorrent = -1; }; - LegalNotice.Accepted = true; Preferences = { WebUI = { Username = "c4patino"; Password_PBKDF2 = "@ByteArray(rCUYopB8giM6MP/g7F3+dQ==:Y7igij6jhBLHiSg9irzHMOCzfr67aH9xsrpUHnHt9CeBcsVP0xpacy0AXTokpINAtoFcX7TATVANdJNUAlsVeA==)"; }; - General.Locale = "en"; + + General = { + Locale = "en"; + StatusbarExternalIPDisplayed = true; + }; + + Scheduler = { + days = "Weekday"; + end_time = "@Variant(\0\0\0\xf\x3\xa5\xd6\x80)"; + start_time = "@Variant(\0\0\0\xf\x1\xee\x62\x80)"; + }; + + Advanced.confirmTorrentDeletion = false; }; }; }; diff --git a/systems/x86_64-linux/shiori/default.nix b/systems/x86_64-linux/shiori/default.nix index 85b5fb5..cb2280d 100755 --- a/systems/x86_64-linux/shiori/default.nix +++ b/systems/x86_64-linux/shiori/default.nix @@ -35,6 +35,11 @@ in { host = "nas"; folder = "/volume1/jellyfin"; }; + autobrr = { + host = "nas"; + folder = "/volume1/qbittorrent"; + mountPath = "/var/lib/qBittorrent/qBittorrent/downloads/autobrr"; + }; }; }; };