server.nix/services/cross-seed.nix

32 lines
819 B
Nix
Raw Permalink Normal View History

{ config, pkgs, ... }:
{
services.cross-seed = {
enable = true;
settingsFile = "/etc/secrets/cross-seed.json";
settings = {
2025-03-19 23:47:10 +02:00
torrentDir = "/var/lib/qBittorrent/qBittorrent/data/BT_backup";
2025-03-20 01:50:51 +02:00
excludeOlder = "2 weeks";
excludeRecentSearch = "3 days";
action = "inject";
duplicateCategories = true;
2025-03-20 01:50:51 +02:00
rssCadence = "30 minutes";
searchCadence = "1 day";
snatchTimeout = "2 minutes";
searchTimeout = "2 minutes";
searchLimit = 100;
};
2024-11-14 22:24:54 +02:00
};
2025-03-09 22:46:24 +02:00
# 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
];
2025-03-09 22:46:24 +02:00
users.users."cross-seed".extraGroups = [
2025-03-19 23:47:10 +02:00
config.services.qbittorrent-nox.group
2025-03-09 22:46:24 +02:00
];
2024-11-14 22:24:54 +02:00
}