1{ pkgs, ... }:
2{
3 name = "broadcast-box";
4 meta = { inherit (pkgs.broadcast-box.meta) maintainers; };
5
6 nodes.machine = {
7 services.broadcast-box = {
8 enable = true;
9 web = {
10 host = "127.0.0.1";
11 port = 8080;
12 };
13 };
14 };
15
16 testScript = ''
17 machine.wait_for_unit("broadcast-box.service")
18 machine.wait_for_open_port(8080)
19 machine.succeed("curl --fail http://localhost:8080/")
20 '';
21}