1{ lib, ... }:
2
3{
4 name = "kimai";
5 meta.maintainers = with lib.maintainers; [ peat-psuwit ];
6
7 nodes.machine =
8 { ... }:
9 {
10 services.kimai.sites."localhost" = {
11 database.createLocally = true;
12 };
13 };
14
15 testScript = ''
16 machine.wait_for_unit("phpfpm-kimai-localhost.service")
17 machine.wait_for_unit("nginx.service")
18 machine.wait_for_open_port(80)
19 machine.succeed("curl -v --location --fail http://localhost/")
20 '';
21}