1{ lib, ... }:
2{
3 name = "nzbhydra2";
4 meta.maintainers = with lib.maintainers; [ matteopacini ];
5
6 nodes.machine =
7 { pkgs, ... }:
8 {
9 services.nzbhydra2.enable = true;
10 };
11
12 testScript = ''
13 machine.start()
14 machine.wait_for_unit("nzbhydra2.service")
15 machine.wait_for_open_port(5076)
16 machine.succeed("curl --fail http://localhost:5076/")
17 '';
18}