first attempt at nas rtorrent service
inspired by 7cf0d801d0
and also by https://www.krank.se/2014/06/25/rtorrent-magic-moving-finished-torrents-based-on-labels/
This commit is contained in:
parent
c5aa3bdcf4
commit
0eebe6f973
5 changed files with 63 additions and 17 deletions
16
nix/home/programs/rtorrent/default.nix
Normal file
16
nix/home/programs/rtorrent/default.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{ pkgs, finalDir, downloadDir, watchDir }:
|
||||
{
|
||||
|
||||
services.rtorrent = {
|
||||
enable = true;
|
||||
downloadDir = downloadDir;
|
||||
group = "users";
|
||||
configText =
|
||||
builtins.readFile (pkgs.substituteAll {
|
||||
src = ./rtorrent.rc;
|
||||
watchDir = watchDir;
|
||||
finalDir = finalDir;
|
||||
});
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue