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