overhaul of qbt + tmpfiles
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
config,
|
||||
service_configs,
|
||||
username,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
@@ -53,24 +54,34 @@
|
||||
Session = {
|
||||
GlobalUPSpeedLimit = 500; # in KiB/s
|
||||
GlobalDLSpeedLimit = 0;
|
||||
IgnoreLimitsOnLAN = true;
|
||||
|
||||
# Including overhead in limits ruins download because download
|
||||
# uses upload to communicate with seeders
|
||||
IncludeOverheadInLimits = false;
|
||||
|
||||
GlobalMaxRatio = 2;
|
||||
QueueingSystemEnabled = false; # seed all torrents all the timei
|
||||
GlobalMaxRatio = 3;
|
||||
QueueingSystemEnabled = false; # seed all torrents all the time
|
||||
|
||||
# add a few trackers TODO! add a script so I can just do a list
|
||||
AddTrackersEnabled = true;
|
||||
AdditionalTrackers = "udp://tracker.opentrackr.org:1337/announce\\nudp://open.stealth.si:80/announce\\nudp://open.demonii.com:1337\\nudp://exodus.desync.com:6969/announce";
|
||||
AdditionalTrackers = (lib.concatStrings (
|
||||
map (url: url + "\\n") [
|
||||
"udp://tracker.opentrackr.org:1337/announce"
|
||||
"udp://open.stealth.si:80/announce"
|
||||
"udp://open.demonii.com:1337"
|
||||
"udp://exodus.desync.com:6969/announce"
|
||||
"udp://tracker.dler.org:6969/announce"
|
||||
"udp://tracker.bittor.pw:1337/announce"
|
||||
"udp://tracker.torrent.eu.org:451/announce"
|
||||
]
|
||||
));
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
systemd.tmpfiles.rules = [
|
||||
"d ${config.services.qbittorrent.serverConfig.Preferences.Downloads.SavePath} 0755 ${config.services.qbittorrent.user} ${config.services.qbittorrent.group}"
|
||||
"d ${config.services.qbittorrent.serverConfig.Preferences.Downloads.TempPath} 0755 ${config.services.qbittorrent.user} ${config.services.qbittorrent.group}"
|
||||
"d ${config.services.qbittorrent.serverConfig.Preferences.Downloads.SavePath} 0770 ${config.services.qbittorrent.user} ${config.services.qbittorrent.group}"
|
||||
"d ${config.services.qbittorrent.serverConfig.Preferences.Downloads.TempPath} 0770 ${config.services.qbittorrent.user} ${config.services.qbittorrent.group}"
|
||||
];
|
||||
|
||||
# make qbittorrent use a vpn
|
||||
|
||||
Reference in New Issue
Block a user