nixos: services: servarr: migrate prowlarr
Some checks failed
ci/woodpecker/push/check Pipeline failed
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:
parent
ad5cbd23c1
commit
1a08118ced
4 changed files with 2 additions and 34 deletions
|
|
@ -51,10 +51,6 @@ in
|
||||||
passwordFile = secrets."forgejo/mail-password".path;
|
passwordFile = secrets."forgejo/mail-password".path;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
# Meta-indexers
|
|
||||||
indexers = {
|
|
||||||
prowlarr.enable = true;
|
|
||||||
};
|
|
||||||
# Jellyfin media server
|
# Jellyfin media server
|
||||||
jellyfin.enable = true;
|
jellyfin.enable = true;
|
||||||
# Gitea mirrorig service
|
# Gitea mirrorig service
|
||||||
|
|
|
||||||
|
|
@ -5,13 +5,11 @@ 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,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
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
})
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@
|
||||||
imports = [
|
imports = [
|
||||||
./bazarr.nix
|
./bazarr.nix
|
||||||
(import ./starr.nix "lidarr")
|
(import ./starr.nix "lidarr")
|
||||||
|
(import ./starr.nix "prowlarr")
|
||||||
(import ./starr.nix "radarr")
|
(import ./starr.nix "radarr")
|
||||||
(import ./starr.nix "readarr")
|
(import ./starr.nix "readarr")
|
||||||
(import ./starr.nix "sonarr")
|
(import ./starr.nix "sonarr")
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ let
|
||||||
cfg = config.my.services.servarr.${starr};
|
cfg = config.my.services.servarr.${starr};
|
||||||
ports = {
|
ports = {
|
||||||
lidarr = 8686;
|
lidarr = 8686;
|
||||||
|
prowlarr = 9696;
|
||||||
radarr = 7878;
|
radarr = 7878;
|
||||||
readarr = 8787;
|
readarr = 8787;
|
||||||
sonarr = 8989;
|
sonarr = 8989;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue