diff --git a/flake.lock b/flake.lock index 449abfb..0150ed8 100644 --- a/flake.lock +++ b/flake.lock @@ -60,11 +60,11 @@ ] }, "locked": { - "lastModified": 1744762232, - "narHash": "sha256-InKnXrZhGVnIoxAF7GHg33Ue6njbobCatesKd2Y90QA=", + "lastModified": 1745023626, + "narHash": "sha256-X2mzqvXTIinY/DkCvWDoqB499t1fpIDsc7EYrIpGbuc=", "ref": "refs/heads/main", - "rev": "e67c2c2a8637dc171168bc0f16ab23399542c680", - "revCount": 149, + "rev": "f623ccd8a1f8e9b3c75ce3b101dc73f2bcce779e", + "revCount": 150, "type": "git", "url": "https://forge.catnip.ee/batteredbunny/common.nix" }, diff --git a/services/cross-seed.nix b/services/cross-seed.nix index 4876015..f49bc9c 100644 --- a/services/cross-seed.nix +++ b/services/cross-seed.nix @@ -1,4 +1,4 @@ -{ config, ... }: +{ config, pkgs, ... }: { services.cross-seed = { enable = true; @@ -19,6 +19,12 @@ }; }; + # Needed for running cross-seed's hook + # /bin/sh -c "curl -XPOST http://localhost:2468/api/webhook?apikey=key --data-urlencode 'infoHash=%I'" + systemd.services.qbittorrent-nox.path = with pkgs; [ + curl + ]; + users.users."cross-seed".extraGroups = [ config.services.qbittorrent-nox.group ]; diff --git a/services/qbittorrent.nix b/services/qbittorrent.nix index 108f86e..fc9d98a 100644 --- a/services/qbittorrent.nix +++ b/services/qbittorrent.nix @@ -9,9 +9,10 @@ openFirewall = true; webuiPort = 4010; torrentingPort = 43125; - extraArgs = [ - "--confirm-legal-notice" - ]; + + serverConfig = { + LegalNotice.Accepted = true; + }; }; caddy.virtualHosts."http://qbittorrent.internal".extraConfig = ''