1{ lib, ... }:
2
3{
4 name = "uptime-kuma";
5 meta.maintainers = with lib.maintainers; [ julienmalka ];
6
7 nodes.machine =
8 { pkgs, ... }:
9 {
10 services.uptime-kuma.enable = true;
11 };
12
13 testScript = ''
14 machine.start()
15 machine.wait_for_unit("uptime-kuma.service")
16 machine.wait_for_open_port(3001)
17 machine.succeed("curl --fail http://localhost:3001/")
18 '';
19}