From d03f6592d1eeaae56889d89cc8080336742db371 Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Sat, 15 Nov 2025 01:07:10 +0100 Subject: [PATCH] Services/Sabnzbd: Init at v4.5.5 --- system/services/sabnzbd.nix | 49 +++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 system/services/sabnzbd.nix diff --git a/system/services/sabnzbd.nix b/system/services/sabnzbd.nix new file mode 100644 index 00000000..6123d569 --- /dev/null +++ b/system/services/sabnzbd.nix @@ -0,0 +1,49 @@ +{ + config, + lib, + pkgs, + ... +}: let + sabnzbdVersion = "4.5.5"; +in { + virtualisation.oci-containers.containers = { + sabnzbd = { + image = "linuxserver/sabnzbd:${sabnzbdVersion}"; + autoStart = true; + + login = { + # Uses DockerHub by default + # registry = ""; + + # DockerHub Credentials + username = "christoph.urlacher@protonmail.com"; + passwordFile = "${config.sops.secrets.docker-password.path}"; + }; + + dependsOn = []; + + ports = [ + # "8080:8080" + ]; + + volumes = [ + "/media/Movie/0-MakeMKV:/media/movies" + "/media/Show/0-MakeMKV:/media/shows" + + "sabnzbd_config:/config" + ]; + + environment = { + PUID = "3000"; + PGID = "3000"; + TZ = "Europe/Berlin"; + }; + + extraOptions = [ + # "--privileged" + # "--device=nvidia.com/gpu=all" + "--net=behind-nginx" + ]; + }; + }; +}