1{ lib, ... }:
2
3let
4 port = 42069;
5in
6{
7 name = "bazarr";
8
9 nodes.machine =
10 { pkgs, ... }:
11 {
12 services.bazarr = {
13 enable = true;
14 listenPort = port;
15 };
16 };
17
18 testScript = ''
19 machine.wait_for_unit("bazarr.service")
20 machine.wait_for_open_port(${toString port})
21 machine.succeed("curl --fail http://localhost:${toString port}/")
22 '';
23}