add shimmie

This commit is contained in:
fuckwit 2025-04-20 18:57:58 +02:00
parent 13b08245de
commit 72fffad326
No known key found for this signature in database

View File

@ -328,6 +328,10 @@ in {
subdomain = "qbittorrent"; subdomain = "qbittorrent";
port = 8080; port = 8080;
} }
{
subdomain = "shimmie";
port = 8000;
}
]; ];
}; };
@ -520,6 +524,12 @@ in {
backend = "podman"; backend = "podman";
containers = { containers = {
shimmie = {
image = "docker.io/shish2k/shimmie2:latest";
volumes = ["/tank/dump/shimmie:/app/data"];
ports = ["127.0.0.1:8000:8000"];
};
jdownloader = { jdownloader = {
image = "docker.io/jlesage/jdownloader-2:latest"; image = "docker.io/jlesage/jdownloader-2:latest";
autoStart = true; autoStart = true;
@ -600,6 +610,7 @@ in {
script = '' script = ''
while read -r evt file; do while read -r evt file; do
printf "handling $evt for $file"
${pkgs.coreutils}/bin/chown ${user}:${group} "$file" ${pkgs.coreutils}/bin/chown ${user}:${group} "$file"
${pkgs.coreutils}/bin/chmod 775 "$file" ${pkgs.coreutils}/bin/chmod 775 "$file"
done < <(${pkgs.inotify-tools}/bin/inotifywait -e create,move -m -r --format '%e %w%f' ${path}) done < <(${pkgs.inotify-tools}/bin/inotifywait -e create,move -m -r --format '%e %w%f' ${path})