From 927dd9e02a8a33c39d749dc4c1b38413e79616d9 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Fri, 15 Oct 2021 15:11:15 +0200 Subject: [PATCH] modules: services: indexers: add prowlarr --- modules/services/indexers/default.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/modules/services/indexers/default.nix b/modules/services/indexers/default.nix index af0f482..66f1604 100644 --- a/modules/services/indexers/default.nix +++ b/modules/services/indexers/default.nix @@ -5,11 +5,13 @@ let jackettPort = 9117; nzbhydraPort = 5076; + prowlarrPort = 9696; in { options.my.services.indexers = with lib; { jackett.enable = mkEnableOption "Jackett torrent meta-indexer"; nzbhydra.enable = mkEnableOption "NZBHydra2 usenet meta-indexer"; + prowlarr.enable = mkEnableOption "Prowlarr torrent & usenet meta-indexer"; }; config = lib.mkMerge [ @@ -46,5 +48,18 @@ in } ]; }) + + (lib.mkIf cfg.prowlarr.enable { + services.prowlarr = { + enable = true; + }; + + my.services.nginx.virtualHosts = [ + { + subdomain = "prowlarr"; + port = prowlarrPort; + } + ]; + }) ]; }