modules: services: indexers: add prowlarr

This commit is contained in:
Bruno BELANYI 2021-10-15 15:11:15 +02:00
parent 731793bb6e
commit 7ca32d8b05

View file

@ -5,11 +5,13 @@ let
jackettPort = 9117; jackettPort = 9117;
nzbhydraPort = 5076; nzbhydraPort = 5076;
prowlarrPort = 9696;
in in
{ {
options.my.services.indexers = with lib; { options.my.services.indexers = with lib; {
jackett.enable = mkEnableOption "Jackett torrent meta-indexer"; jackett.enable = mkEnableOption "Jackett torrent meta-indexer";
nzbhydra.enable = mkEnableOption "NZBHydra2 usenet meta-indexer"; nzbhydra.enable = mkEnableOption "NZBHydra2 usenet meta-indexer";
prowlarr.enable = mkEnableOption "Prowlarr torrent & usenet meta-indexer";
}; };
config = lib.mkMerge [ 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;
}
];
})
]; ];
} }