Rtorrent: Difference between revisions

Makefu (talk | contribs)
initial creation with sample code for rtorrent + flood
 
Makefu (talk | contribs)
remove jesec-rtorrent
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:


=== Integration with flood-js via UNIX sockets ===
=== Integration with flood-js via UNIX sockets ===
rtorrent can open a socket which other software can use to interface with. No unprotected RPC socket of rtorrent is required with this setup and it therefore provides a higher security standard<syntaxhighlight lang="nix">
rtorrent can open a socket which other software can use to interface with. No unprotected RPC socket of rtorrent is required with this setup and it therefore provides a higher security standard.
 
<syntaxhighlight lang="nix">
{ config, lib, pkgs, ... }:
{ config, lib, pkgs, ... }:


Line 13: Line 15:
     enable = true;
     enable = true;
     port = peer-port;
     port = peer-port;
     package = pkgs.jesec-rtorrent; # currently (2024-12-30) rtorrent 0.15.0 in nixpkgs unstable is incompatible with flood, this is why a fork is used
     package = pkgs.rtorrent; # (2025-07-28) upstream develop of rtorrent continued, jesec-rtorrent does not build in nixpkgs
     openFirewall = true;
     openFirewall = true;
   };
   };
   services.flood = {
   services.flood = {
     enable = true;
     enable = true;
Line 26: Line 29:
   systemd.services.flood.serviceConfig.SupplementaryGroups = [ config.services.rtorrent.group ];
   systemd.services.flood.serviceConfig.SupplementaryGroups = [ config.services.rtorrent.group ];
}
}
</syntaxhighlight>
</syntaxhighlight>Sample configuration is to be put into '''rtorrent.nix''' and imported in your '''configuration.nix''' via:
{
  imports = [ ./rtorrent.nix ];
}
After performing '''nixos-rebuild switch''' on port http://localhost:8112 the flood service should run.
 
[[Category:Server]]