nixos: services: servarr: migrate nzbhydra

This commit is contained in:
Bruno BELANYI 2025-03-31 11:32:39 +00:00
parent c823edf584
commit b1ade72383
5 changed files with 29 additions and 27 deletions

View file

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

View file

@ -0,0 +1,25 @@
{ config, lib, ... }:
let
cfg = config.my.services.servarr.nzbhydra;
in
{
options.my.services.servarr.nzbhydra = with lib; {
enable = lib.mkEnableOption "NZBHydra2" // {
default = config.my.services.servarr.enableAll;
};
};
config = lib.mkIf cfg.enable {
services.nzbhydra2 = {
enable = true;
};
my.services.nginx.virtualHosts = {
nzbhydra = {
port = 5076;
};
};
# NZBHydra2 does not log authentication failures...
};
}