jesec to normal rtorrent
Some checks are pending
Plex Update / update (push) Waiting to run

This commit is contained in:
Vivian 2025-07-10 19:34:44 +02:00
parent e18b028d06
commit 9b29d097f8
3 changed files with 31 additions and 30 deletions

36
flake.lock generated
View file

@ -706,11 +706,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1752062782, "lastModified": 1752093218,
"narHash": "sha256-Dod77HcIByOyfGLEJOgRxg2Fmk2Y5lVgMEcN/xVEt/8=", "narHash": "sha256-+3rXu8ewcNDi65/2mKkdSGrivQs5zEZVp5aYszXC0d0=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "bec8ff39811568eb7c8c8d1e2a1a476326748f51", "rev": "206ed3c71418b52e176f16f58805c96e84555320",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -818,11 +818,11 @@
"spectrum": "spectrum" "spectrum": "spectrum"
}, },
"locked": { "locked": {
"lastModified": 1751732733, "lastModified": 1752095991,
"narHash": "sha256-MuaFFGHdShvGdHKrd3PUI2om+njixdG/1dGlglRdK8Q=", "narHash": "sha256-+paXzPg6SN3O+YKtQKiU+kQE1EkfsrI1XEYTxI4DSFk=",
"owner": "astro", "owner": "astro",
"repo": "microvm.nix", "repo": "microvm.nix",
"rev": "9d3d845ccb1a3f81747d027e95b110d4637468d0", "rev": "f30b1412b73df264dc9cac154d340645add350ff",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -1157,11 +1157,11 @@
}, },
"nixpkgs_7": { "nixpkgs_7": {
"locked": { "locked": {
"lastModified": 1751792365, "lastModified": 1751984180,
"narHash": "sha256-J1kI6oAj25IG4EdVlg2hQz8NZTBNYvIS0l4wpr9KcUo=", "narHash": "sha256-LwWRsENAZJKUdD3SpLluwDmdXY9F45ZEgCb0X+xgOL0=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "1fd8bada0b6117e6c7eb54aad5813023eed37ccb", "rev": "9807714d6944a957c2e036f84b0ff8caf9930bc0",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -1188,11 +1188,11 @@
}, },
"nixpkgs_9": { "nixpkgs_9": {
"locked": { "locked": {
"lastModified": 1751792365, "lastModified": 1751984180,
"narHash": "sha256-J1kI6oAj25IG4EdVlg2hQz8NZTBNYvIS0l4wpr9KcUo=", "narHash": "sha256-LwWRsENAZJKUdD3SpLluwDmdXY9F45ZEgCb0X+xgOL0=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "1fd8bada0b6117e6c7eb54aad5813023eed37ccb", "rev": "9807714d6944a957c2e036f84b0ff8caf9930bc0",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -1225,11 +1225,11 @@
"systems": "systems_7" "systems": "systems_7"
}, },
"locked": { "locked": {
"lastModified": 1751994757, "lastModified": 1752158208,
"narHash": "sha256-F8t/OiOUAc+zmZ8pSHkppWW8fM8l2JJ2TRvsbeMUgF4=", "narHash": "sha256-XbXYLUtaB/wHvZYefvaDPbo4eYj27kbtowHfww9bqLw=",
"owner": "pta2002", "owner": "pta2002",
"repo": "nixvim", "repo": "nixvim",
"rev": "a610befe67223933730872c2a47c9d8b880638ae", "rev": "b728cf43d97814df43f5d9bd9dafac9072ccd9e8",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -1244,11 +1244,11 @@
"nixpkgs": "nixpkgs_9" "nixpkgs": "nixpkgs_9"
}, },
"locked": { "locked": {
"lastModified": 1752058430, "lastModified": 1752161467,
"narHash": "sha256-npXVUczxJcD4NMeALvhIYIvVATIIw97cgrh0HZBanCU=", "narHash": "sha256-UiQWoS1OUw+5RRRkjWE/W6Vwsx26Pq4GTcJKPZ1TOw8=",
"owner": "nix-community", "owner": "nix-community",
"repo": "NUR", "repo": "NUR",
"rev": "808c777775781626a946e86c6e34f3e16af5bff6", "rev": "8c091c06ed45e45d921c42aa7e8360932bb7c774",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -27,10 +27,10 @@ in {
services.garage = { services.garage = {
enable = true; enable = true;
package = pkgs.garage_0_9; package = pkgs.garage_1;
settings = { settings = {
db_engine = "lmdb"; # Recommended for mastodon db_engine = "lmdb";
replication_mode = "1"; replication_factor = 1;
compression_level = 0; compression_level = 0;
# For inter-node comms # For inter-node comms

View file

@ -3,7 +3,7 @@
enable = true; enable = true;
port = 14764; # port forwarded port = 14764; # port forwarded
downloadDir = "/mnt/storage/torrents/r"; downloadDir = "/mnt/storage/torrents/r";
package = pkgs.jesec-rtorrent; package = pkgs.rtorrent;
configText = configText =
let cfg = config.services.rtorrent; let cfg = config.services.rtorrent;
in pkgs.lib.mkForce '' in pkgs.lib.mkForce ''
@ -27,15 +27,15 @@
method.insert = cfg.watch, private|const|string, (cat,(cfg.basedir),"watch/") method.insert = cfg.watch, private|const|string, (cat,(cfg.basedir),"watch/")
# Create directories # Create directories
fs.mkdir.recursive = (cat,(cfg.basedir)) # fs.mkdir.recursive = (cat,(cfg.basedir))
fs.mkdir = (cat,(cfg.download)) # fs.mkdir = (cat,(cfg.download))
fs.mkdir = (cat,(cfg.logs)) # fs.mkdir = (cat,(cfg.logs))
fs.mkdir = (cat,(cfg.session)) # fs.mkdir = (cat,(cfg.session))
fs.mkdir = (cat,(cfg.watch)) # fs.mkdir = (cat,(cfg.watch))
fs.mkdir = (cat,(cfg.watch),"/load") # fs.mkdir = (cat,(cfg.watch),"/load")
fs.mkdir = (cat,(cfg.watch),"/start") # fs.mkdir = (cat,(cfg.watch),"/start")
# Drop to "$(cfg.watch)/load" to add torrent # Drop to "$(cfg.watch)/load" to add torrent
schedule2 = watch_load, 11, 10, ((load.verbose, (cat, (cfg.watch), "load/*.torrent"))) schedule2 = watch_load, 11, 10, ((load.verbose, (cat, (cfg.watch), "load/*.torrent")))
@ -100,7 +100,8 @@
system.daemon.set = true system.daemon.set = true
# XML-RPC interface # XML-RPC interface
network.scgi.open_local = (cat,(cfg.rpcsock)) #network.scgi.open_local = (cat,(cfg.rpcsock))
network.scgi.open_port = localhost:5000
schedule = scgi_group,0,0,"execute.nothrow=chown,\":rtorrent\",(cfg.rpcsock)" schedule = scgi_group,0,0,"execute.nothrow=chown,\":rtorrent\",(cfg.rpcsock)"
schedule = scgi_permission,0,0,"execute.nothrow=chmod,\"g+w,o=\",(cfg.rpcsock)" schedule = scgi_permission,0,0,"execute.nothrow=chmod,\"g+w,o=\",(cfg.rpcsock)"