modules: services: indexers: add prowlarr
This commit is contained in:
parent
9582f8403e
commit
927dd9e02a
|
@ -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;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
})
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue