1{ lib, ... }:
2let
3 mainPort = "5001";
4in
5{
6 name = "docling-serve";
7 meta = with lib.maintainers; {
8 maintainers = [ ];
9 };
10
11 nodes = {
12 machine =
13 { ... }:
14 {
15 services.docling-serve = {
16 enable = true;
17 };
18 };
19 };
20
21 testScript = ''
22 machine.start()
23
24 machine.wait_for_unit("docling-serve.service")
25 machine.wait_for_open_port(${mainPort})
26 machine.succeed("curl http://127.0.0.1:${mainPort}")
27 '';
28}