From 70880ac224aba71920b127d90c60afab77a9d5b7 Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Mon, 23 Dec 2024 18:58:03 +0100 Subject: [PATCH] Build Prowlarr image with NixNG --- README.md | 2 +- flake.lock | 6 +++--- modules/media.nix | 2 +- nixng-configurations/default.nix | 1 + nixng-configurations/prowlarr.nix | 9 +++++++++ 5 files changed, 15 insertions(+), 5 deletions(-) create mode 100644 nixng-configurations/prowlarr.nix diff --git a/README.md b/README.md index 58459ce..0814689 100644 --- a/README.md +++ b/README.md @@ -20,9 +20,9 @@ Legend: | ✨ | `nixng-radarr` | | | ✨ | `nixng-sonarr` | | | ✨ | `nixng-bazarr` | | +| ✨ | `nixng-prowlarr` | | | ✅ | `jellyfin/jellyfin` | | | ✅ | `linuxserver/deluge` | | -| ✅ | `lscr.io/linuxserver/prowlarr` | | | ✅ | `ghcr.io/atuinsh/atuin` | | | ✅ | `postgres:14` | Database for Atuin | | ✅ | `ghcr.io/paperless-ngx/paperless-ngx` | | diff --git a/flake.lock b/flake.lock index 7fe6ab5..2cf6ed9 100644 --- a/flake.lock +++ b/flake.lock @@ -676,11 +676,11 @@ "treefmt-nix": "treefmt-nix_2" }, "locked": { - "lastModified": 1734971171, - "narHash": "sha256-4PEQpCiLiHPnbEWpP2e2QoxUzqe9PXgJyU2FWIXfAB8=", + "lastModified": 1734976053, + "narHash": "sha256-hvKsaAgdZKeAv/VnF/W0isS+Ex/5ij7AGmp5tLpFGuQ=", "owner": "pizzapim", "repo": "NixNG", - "rev": "8791c628410bc5feb2b9052877b7a67cc089e47e", + "rev": "90cbec543482973ef5b314ad40a842623c2696a9", "type": "github" }, "original": { diff --git a/modules/media.nix b/modules/media.nix index 77fc2a3..3b4be3e 100644 --- a/modules/media.nix +++ b/modules/media.nix @@ -276,7 +276,7 @@ volumes.config.persistentVolumeClaim.claimName = "prowlarr"; containers.prowlarr = { - image = globals.images.prowlarr; + image = utils.mkNixNGImage "prowlarr"; ports.web.containerPort = 9696; imagePullPolicy = "IfNotPresent"; diff --git a/nixng-configurations/default.nix b/nixng-configurations/default.nix index 157f36a..047e013 100644 --- a/nixng-configurations/default.nix +++ b/nixng-configurations/default.nix @@ -16,6 +16,7 @@ flake-utils.lib.eachDefaultSystem (system: let radarr = ./radarr.nix; sonarr = ./sonarr.nix; bazarr = ./bazarr.nix; + prowlarr = ./prowlarr.nix; }; in { nixngConfigurations = builtins.mapAttrs (name: configFile: diff --git a/nixng-configurations/prowlarr.nix b/nixng-configurations/prowlarr.nix new file mode 100644 index 0000000..e12e1bb --- /dev/null +++ b/nixng-configurations/prowlarr.nix @@ -0,0 +1,9 @@ +{...}: { + dinit.enable = true; + init.services.prowlarr.shutdownOnExit = true; + + services.prowlarr = { + enable = true; + dataDir = "/config"; + }; +}