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