diff --git a/nixarr/qbittorrent/default.nix b/nixarr/qbittorrent/default.nix index a060e30..e3b3a4f 100644 --- a/nixarr/qbittorrent/default.nix +++ b/nixarr/qbittorrent/default.nix @@ -117,30 +117,32 @@ in { webuiPort = cfg.uiPort; torrentingPort = cfg.peerPort; openFirewall = cfg.openFirewall; - serverConfig = { - LegalNotice.Accepted = true; - BitTorrent.Session = { - DefaultSavePath = downloadDir; - TempPath = "${downloadDir}/.incomplete"; - 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; + serverConfig = + { + LegalNotice.Accepted = true; + BitTorrent.Session = { + DefaultSavePath = downloadDir; TempPath = "${downloadDir}/.incomplete"; TempPathEnabled = true; + Port = cfg.peerPort; + "BTProtocol" = "TCP"; }; - }; - } // cfg.extraSettings; + 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"; + TempPathEnabled = true; + }; + }; + } + // cfg.extraSettings; }; users.users.qbittorrent = {