refactor: Migrate for qbittorrent and cross-seed changes

This commit is contained in:
batteredbunny 2025-04-19 03:46:07 +03:00
parent 26480fa792
commit e7392eb450
3 changed files with 15 additions and 8 deletions

8
flake.lock generated
View file

@ -60,11 +60,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1744762232, "lastModified": 1745023626,
"narHash": "sha256-InKnXrZhGVnIoxAF7GHg33Ue6njbobCatesKd2Y90QA=", "narHash": "sha256-X2mzqvXTIinY/DkCvWDoqB499t1fpIDsc7EYrIpGbuc=",
"ref": "refs/heads/main", "ref": "refs/heads/main",
"rev": "e67c2c2a8637dc171168bc0f16ab23399542c680", "rev": "f623ccd8a1f8e9b3c75ce3b101dc73f2bcce779e",
"revCount": 149, "revCount": 150,
"type": "git", "type": "git",
"url": "https://forge.catnip.ee/batteredbunny/common.nix" "url": "https://forge.catnip.ee/batteredbunny/common.nix"
}, },

View file

@ -1,4 +1,4 @@
{ config, ... }: { config, pkgs, ... }:
{ {
services.cross-seed = { services.cross-seed = {
enable = true; 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 = [ users.users."cross-seed".extraGroups = [
config.services.qbittorrent-nox.group config.services.qbittorrent-nox.group
]; ];

View file

@ -9,9 +9,10 @@
openFirewall = true; openFirewall = true;
webuiPort = 4010; webuiPort = 4010;
torrentingPort = 43125; torrentingPort = 43125;
extraArgs = [
"--confirm-legal-notice" serverConfig = {
]; LegalNotice.Accepted = true;
};
}; };
caddy.virtualHosts."http://qbittorrent.internal".extraConfig = '' caddy.virtualHosts."http://qbittorrent.internal".extraConfig = ''