nixos: services: servarr: migrate nzbhydra

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

View file

@ -0,0 +1,25 @@
{ config, lib, ... }:
let
cfg = config.my.services.servarr.nzbhydra;
in
{
options.my.services.servarr = 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...
};
}