blob: 35a4e6c79b513305720a416ce73555fb16ea8cb6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
{ lib, ... }:
{
name = "kimai";
meta.maintainers = with lib.maintainers; [ peat-psuwit ];
containers.machine =
{ ... }:
{
services.kimai.sites."localhost" = {
database.createLocally = true;
};
};
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/")
# Make sure bundled assets are served.
# https://github.com/NixOS/nixpkgs/issues/442208
machine.succeed("curl -v --location --fail http://localhost/bundles/tabler/tabler.css")
'';
}
|