inspired by 7cf0d801d0
and also by https://www.krank.se/2014/06/25/rtorrent-magic-moving-finished-torrents-based-on-labels/
16 lines
309 B
Nix
16 lines
309 B
Nix
{ pkgs, finalDir, downloadDir, watchDir }:
|
|
{
|
|
|
|
services.rtorrent = {
|
|
enable = true;
|
|
downloadDir = downloadDir;
|
|
group = "users";
|
|
configText =
|
|
builtins.readFile (pkgs.substituteAll {
|
|
src = ./rtorrent.rc;
|
|
watchDir = watchDir;
|
|
finalDir = finalDir;
|
|
});
|
|
};
|
|
|
|
}
|