qbt: cleanup

This commit is contained in:
Simon Gardling 2025-08-20 12:15:30 -04:00
parent 2ccf55e92b
commit c272eb9d5b
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D

View File

@ -11,7 +11,7 @@
(lib.serviceMountDeps "qbittorrent" [ (lib.serviceMountDeps "qbittorrent" [
service_configs.torrents_path service_configs.torrents_path
config.services.qbittorrent.serverConfig.Preferences.Downloads.TempPath config.services.qbittorrent.serverConfig.Preferences.Downloads.TempPath
"/var/lib/qBittorrent/qBittorrent" "${config.services.qbittorrent.profileDir}/qBittorrent"
]) ])
]; ];
@ -34,8 +34,8 @@
services.qbittorrent = { services.qbittorrent = {
enable = true; enable = true;
package = pkgs.qbittorrent-nox;
webuiPort = service_configs.ports.torrent; webuiPort = service_configs.ports.torrent;
profileDir = "/var/lib/qBittorrent";
serverConfig.LegalNotice.Accepted = true; serverConfig.LegalNotice.Accepted = true;
@ -44,8 +44,8 @@
AlternativeUIEnabled = true; AlternativeUIEnabled = true;
RootFolder = builtins.toString ( RootFolder = builtins.toString (
pkgs.fetchzip { pkgs.fetchzip {
url = "https://github.com/VueTorrent/VueTorrent/releases/download/v2.26.0/vuetorrent.zip"; url = "https://github.com/VueTorrent/VueTorrent/releases/download/v2.28.2/vuetorrent.zip";
sha256 = "EFVzsr/OZ/QMJ+NN3kDkmIk6FCCnqgK6DgsLWNonspU="; sha256 = "8aKmiXcr2pp8qt4w/lYBAIjLPh8tlgYsx6PbovY54KM=";
} }
); );
@ -55,8 +55,7 @@
}; };
Downloads = { Downloads = {
SavePath = service_configs.torrent.SavePath; inherit (service_configs.torrent) SavePath TempPath;
TempPath = service_configs.torrent.TempPath;
}; };
}; };
@ -67,7 +66,7 @@
IgnoreLimitsOnLAN = true; IgnoreLimitsOnLAN = true;
IncludeOverheadInLimits = true; IncludeOverheadInLimits = false;
GlobalMaxRatio = 6.0; GlobalMaxRatio = 6.0;
QueueingSystemEnabled = false; # seed all torrents all the time QueueingSystemEnabled = false; # seed all torrents all the time
@ -201,7 +200,7 @@
AnnounceToAllTrackers = true; AnnounceToAllTrackers = true;
# idk why it also has to be specified here too? # idk why it also has to be specified here too?
TempPath = config.services.qbittorrent.serverConfig.Preferences.Downloads.TempPath; inherit (config.services.qbittorrent.serverConfig.Preferences.Downloads) TempPath;
TempPathEnabled = true; TempPathEnabled = true;
# how many connections per sec # how many connections per sec
@ -217,6 +216,7 @@
systemd.tmpfiles.rules = [ systemd.tmpfiles.rules = [
"d ${config.services.qbittorrent.serverConfig.Preferences.Downloads.SavePath} 0750 ${config.services.qbittorrent.user} ${service_configs.media_group}" "d ${config.services.qbittorrent.serverConfig.Preferences.Downloads.SavePath} 0750 ${config.services.qbittorrent.user} ${service_configs.media_group}"
"d ${config.services.qbittorrent.serverConfig.Preferences.Downloads.TempPath} 0750 ${config.services.qbittorrent.user} ${service_configs.media_group}" "d ${config.services.qbittorrent.serverConfig.Preferences.Downloads.TempPath} 0750 ${config.services.qbittorrent.user} ${service_configs.media_group}"
"d ${config.services.qbittorrent.profileDir} 0700 ${config.services.qbittorrent.user} ${config.services.qbittorrent.group}"
]; ];
# make qbittorrent use a vpn # make qbittorrent use a vpn