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-radicale` | |
| ✨ | `nixng-jellyseerr` | | | ✨ | `nixng-jellyseerr` | |
| ✨ | `nixng-radarr` | | | ✨ | `nixng-radarr` | |
| ✨ | `nixng-sonarr` | |
| ✅ | `jellyfin/jellyfin` | | | ✅ | `jellyfin/jellyfin` | |
| ✅ | `linuxserver/deluge` | | | ✅ | `linuxserver/deluge` | |
| ✅ | `lscr.io/linuxserver/prowlarr` | | | ✅ | `lscr.io/linuxserver/prowlarr` | |
| ✅ | `lscr.io/linuxserver/sonarr` | |
| ✅ | `lscr.io/linuxserver/bazarr` | | | ✅ | `lscr.io/linuxserver/bazarr` | |
| ✅ | `ghcr.io/atuinsh/atuin` | | | ✅ | `ghcr.io/atuinsh/atuin` | |
| ✅ | `postgres:14` | Database for Atuin | | ✅ | `postgres:14` | Database for Atuin |

View file

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

View file

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

View file

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