Build Sonarr image with NixNG

This commit is contained in:
Pim Kunis 2024-12-23 15:54:56 +01:00
parent e1ebabe09b
commit 95ce6f2c7a
5 changed files with 15 additions and 5 deletions

View file

@ -18,10 +18,10 @@ Legend:
| ✨ | `nixng-radicale` | |
| ✨ | `nixng-jellyseerr` | |
| ✨ | `nixng-radarr` | |
| ✨ | `nixng-sonarr` | |
| ✅ | `jellyfin/jellyfin` | |
| ✅ | `linuxserver/deluge` | |
| ✅ | `lscr.io/linuxserver/prowlarr` | |
| ✅ | `lscr.io/linuxserver/sonarr` | |
| ✅ | `lscr.io/linuxserver/bazarr` | |
| ✅ | `ghcr.io/atuinsh/atuin` | |
| ✅ | `postgres:14` | Database for Atuin |

View file

@ -676,11 +676,11 @@
"treefmt-nix": "treefmt-nix_2"
},
"locked": {
"lastModified": 1734784051,
"narHash": "sha256-YvlDvvnRZ75reaqiNSAibNS2ThoVhmegxJgCMbnyc/o=",
"lastModified": 1734963444,
"narHash": "sha256-uxPuuRnW0O8SC0IGo9jY+x3ghfSEfFcaSAVFb1ZxlWo=",
"owner": "pizzapim",
"repo": "NixNG",
"rev": "f321e5903925f760bf617f7a92c8e5cd7711d6d9",
"rev": "a16aa49f49eb559742ff71ad30cfa9985e2223df",
"type": "github"
},
"original": {

View file

@ -325,7 +325,7 @@
spec = {
containers.sonarr = {
image = globals.images.sonarr;
image = utils.mkNixNGImage "sonarr";
ports.web.containerPort = 8989;
imagePullPolicy = "IfNotPresent";

View file

@ -14,6 +14,7 @@ flake-utils.lib.eachDefaultSystem (system: let
radicale = ./radicale.nix;
jellyseerr = ./jellyseerr.nix;
radarr = ./radarr.nix;
sonarr = ./sonarr.nix;
};
in {
nixngConfigurations = builtins.mapAttrs (name: configFile:

View file

@ -0,0 +1,9 @@
{...}: {
dinit.enable = true;
init.services.sonarr.shutdownOnExit = true;
services.sonarr = {
enable = true;
dataDir = "/config";
};
}