From df03fccc96a8d7e9d69410bef9bd44ebcf701ad6 Mon Sep 17 00:00:00 2001 From: batteredbunny Date: Sat, 19 Apr 2025 03:46:07 +0300 Subject: [PATCH] refactor: Migrate for qbittorrent and cross-seed changes --- flake.lock | 8 ++++---- services/cross-seed.nix | 8 +++++++- 2 files changed, 11 insertions(+), 5 deletions(-) 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 ];