nixos: services: servarr: migrate prowlarr
Some checks failed
ci/woodpecker/push/check Pipeline failed

It's configured in the exact same way as other *arr apps, and thus
automatically gains the declarative port configuration now.

I also want to move the other two indexer modules under `servarr`, as
they are all closely related.
This commit is contained in:
Bruno BELANYI 2025-03-31 11:21:24 +00:00
parent ad5cbd23c1
commit 1a08118ced
4 changed files with 2 additions and 34 deletions

View file

@ -51,10 +51,6 @@ in
passwordFile = secrets."forgejo/mail-password".path;
};
};
# Meta-indexers
indexers = {
prowlarr.enable = true;
};
# Jellyfin media server
jellyfin.enable = true;
# Gitea mirrorig service

View file

@ -5,13 +5,11 @@ 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,33 +44,5 @@ in
};
};
})
(lib.mkIf cfg.prowlarr.enable {
services.prowlarr = {
enable = true;
};
my.services.nginx.virtualHosts = {
prowlarr = {
port = prowlarrPort;
};
};
services.fail2ban.jails = {
prowlarr = ''
enabled = true
filter = prowlarr
action = iptables-allports
'';
};
environment.etc = {
"fail2ban/filter.d/prowlarr.conf".text = ''
[Definition]
failregex = ^.*\|Warn\|Auth\|Auth-Failure ip <HOST> username .*$
journalmatch = _SYSTEMD_UNIT=prowlarr.service
'';
};
})
];
}

View file

@ -7,6 +7,7 @@
imports = [
./bazarr.nix
(import ./starr.nix "lidarr")
(import ./starr.nix "prowlarr")
(import ./starr.nix "radarr")
(import ./starr.nix "readarr")
(import ./starr.nix "sonarr")

View file

@ -5,6 +5,7 @@ let
cfg = config.my.services.servarr.${starr};
ports = {
lidarr = 8686;
prowlarr = 9696;
radarr = 7878;
readarr = 8787;
sonarr = 8989;