2025-04-04 23:56:15 +02:00
|
|
|
{ lib, ... }:
|
2024-11-02 05:50:17 +07:00
|
|
|
|
2025-04-04 23:56:15 +02:00
|
|
|
{
|
|
|
|
name = "kimai";
|
|
|
|
meta.maintainers = with lib.maintainers; [ peat-psuwit ];
|
2024-11-02 05:50:17 +07:00
|
|
|
|
2025-04-04 23:56:15 +02:00
|
|
|
nodes.machine =
|
|
|
|
{ ... }:
|
|
|
|
{
|
|
|
|
services.kimai.sites."localhost" = {
|
|
|
|
database.createLocally = true;
|
2024-11-02 05:50:17 +07:00
|
|
|
};
|
2025-04-04 23:56:15 +02:00
|
|
|
};
|
2024-11-02 05:50:17 +07:00
|
|
|
|
2025-04-04 23:56:15 +02:00
|
|
|
testScript = ''
|
|
|
|
machine.wait_for_unit("phpfpm-kimai-localhost.service")
|
|
|
|
machine.wait_for_unit("nginx.service")
|
|
|
|
machine.wait_for_open_port(80)
|
|
|
|
machine.succeed("curl -v --location --fail http://localhost/")
|
|
|
|
'';
|
|
|
|
}
|