mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
18 lines
379 B
Nix
18 lines
379 B
Nix
{ lib, ... }:
|
|
{
|
|
name = "nzbhydra2";
|
|
meta.maintainers = with lib.maintainers; [ matteopacini ];
|
|
|
|
nodes.machine =
|
|
{ pkgs, ... }:
|
|
{
|
|
services.nzbhydra2.enable = true;
|
|
};
|
|
|
|
testScript = ''
|
|
machine.start()
|
|
machine.wait_for_unit("nzbhydra2.service")
|
|
machine.wait_for_open_port(5076)
|
|
machine.succeed("curl --fail http://localhost:5076/")
|
|
'';
|
|
}
|