1{ lib, ... }:
2
3{
4 name = "nextjs-ollama-llm-ui";
5 meta.maintainers = with lib.maintainers; [ malteneuss ];
6
7 nodes.machine =
8 { pkgs, ... }:
9 {
10 services.nextjs-ollama-llm-ui = {
11 enable = true;
12 port = 8080;
13 };
14 };
15
16 testScript = ''
17 # Ensure the service is started and reachable
18 machine.wait_for_unit("nextjs-ollama-llm-ui.service")
19 machine.wait_for_open_port(8080)
20 machine.succeed("curl --fail http://127.0.0.1:8080")
21 '';
22}