Formatted qbittorrent nix
This commit is contained in:
@@ -117,30 +117,32 @@ in {
|
|||||||
webuiPort = cfg.uiPort;
|
webuiPort = cfg.uiPort;
|
||||||
torrentingPort = cfg.peerPort;
|
torrentingPort = cfg.peerPort;
|
||||||
openFirewall = cfg.openFirewall;
|
openFirewall = cfg.openFirewall;
|
||||||
serverConfig = {
|
serverConfig =
|
||||||
LegalNotice.Accepted = true;
|
{
|
||||||
BitTorrent.Session = {
|
LegalNotice.Accepted = true;
|
||||||
DefaultSavePath = downloadDir;
|
BitTorrent.Session = {
|
||||||
TempPath = "${downloadDir}/.incomplete";
|
DefaultSavePath = downloadDir;
|
||||||
TempPathEnabled = true;
|
|
||||||
Port = cfg.peerPort;
|
|
||||||
"BTProtocol" = "TCP";
|
|
||||||
};
|
|
||||||
Preferences = {
|
|
||||||
WebUI = {
|
|
||||||
Address =
|
|
||||||
if cfg.vpn.enable
|
|
||||||
then "192.168.15.1"
|
|
||||||
else "0.0.0.0";
|
|
||||||
Port = cfg.uiPort;
|
|
||||||
};
|
|
||||||
Downloads = {
|
|
||||||
SavePath = downloadDir;
|
|
||||||
TempPath = "${downloadDir}/.incomplete";
|
TempPath = "${downloadDir}/.incomplete";
|
||||||
TempPathEnabled = true;
|
TempPathEnabled = true;
|
||||||
|
Port = cfg.peerPort;
|
||||||
|
"BTProtocol" = "TCP";
|
||||||
};
|
};
|
||||||
};
|
Preferences = {
|
||||||
} // cfg.extraSettings;
|
WebUI = {
|
||||||
|
Address =
|
||||||
|
if cfg.vpn.enable
|
||||||
|
then "192.168.15.1"
|
||||||
|
else "0.0.0.0";
|
||||||
|
Port = cfg.uiPort;
|
||||||
|
};
|
||||||
|
Downloads = {
|
||||||
|
SavePath = downloadDir;
|
||||||
|
TempPath = "${downloadDir}/.incomplete";
|
||||||
|
TempPathEnabled = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
// cfg.extraSettings;
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users.qbittorrent = {
|
users.users.qbittorrent = {
|
||||||
|
|||||||
Reference in New Issue
Block a user