Add search for torrents
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
# Rootless container runtime. No daemon needed, unlike Docker.
|
||||
packages = [ pkgs.podman ];
|
||||
|
||||
# Jackett indexer, running rootless via podman so it joins `devenv up`
|
||||
# alongside postgres/torad/musicfs. Foreground (no `-d`) so process-compose
|
||||
# supervises it and streams logs; `--rm` cleans up on `devenv up` shutdown.
|
||||
# UI: http://localhost:9117
|
||||
#
|
||||
# Note: podman (unlike docker) does NOT auto-create bind-mount source dirs,
|
||||
# so we `mkdir -p` them first or podman fails with "statfs: no such file".
|
||||
processes.jackett.exec =
|
||||
let
|
||||
jackettConfig = "${config.env.DEVENV_RUNTIME}/jackett-config";
|
||||
jackettDownloads = "${config.env.DEVENV_RUNTIME}/jackett-downloads";
|
||||
in
|
||||
''
|
||||
mkdir -p "${jackettConfig}" "${jackettDownloads}"
|
||||
${pkgs.podman}/bin/podman run --rm \
|
||||
--name devenv-jackett \
|
||||
-p 9117:9117 \
|
||||
-e PUID=1000 \
|
||||
-e PGID=100 \
|
||||
-e TZ=Europe/Warsaw \
|
||||
-e AUTO_UPDATE=true \
|
||||
-v "${jackettConfig}":/config \
|
||||
-v "${jackettDownloads}":/downloads \
|
||||
lscr.io/linuxserver/jackett:latest
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user