diff options
| author | Max Audron <audron@cocaine.farm> | 2026-01-08 12:38:36 +0100 |
|---|---|---|
| committer | Max Audron <audron@cocaine.farm> | 2026-01-08 12:38:36 +0100 |
| commit | ad284256fc31432c6eed1b228855dfc1ebe21cc3 (patch) | |
| tree | 08fc617fd9e55cf7d51fc4e9ee3c8c21a6bf245e /modules | |
| parent | update to nixos 25.11 (diff) | |
move rtorrent session folder to cached dataset
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/tlmp/rtorrent.rc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/tlmp/rtorrent.rc b/modules/tlmp/rtorrent.rc index 3ac20e7..1a156a5 100644 --- a/modules/tlmp/rtorrent.rc +++ b/modules/tlmp/rtorrent.rc @@ -7,14 +7,15 @@ ############################################################################# # Instance layout (base paths) -method.insert = cfg.basedir, private|const|string, (cat,"/mnt/media/") +method.insert = cfg.basedir, private|const|string, (cat,"/var/lib/rtorrent/") +method.insert = cfg.mediadir, private|const|string, (cat,"/mnt/media/") method.insert = cfg.watch, private|const|string, (cat,(cfg.basedir),"watch/") method.insert = cfg.logs, private|const|string, (cat,"/var/log/rtorrent/") # Create instance directories execute.throw = bash, -c, (cat,\ "builtin cd \"", (cfg.basedir), "\" ",\ - "&& mkdir -p .session download watch/{load,start}") + "&& mkdir -p .session watch/{load,start}") ############################################################################# @@ -83,7 +84,7 @@ network.xmlrpc.size_limit.set = 4M # Basic operational settings (no need to change these) session.path.set = (cat, (cfg.basedir), ".session") -directory.default.set = (cat, (cfg.basedir), "download/") +directory.default.set = (cat, (cfg.mediadir), "download/") execute.nothrow = bash, -c, (cat, "echo >",\ (session.path), "rtorrent.pid", " ", (system.pid)) |
