2025-05-24 23:40:23 +08:00
|
|
|
{ lib, ... }:
|
2020-02-06 16:00:19 +00:00
|
|
|
|
2025-05-24 23:40:23 +08:00
|
|
|
{
|
|
|
|
name = "jirafeau";
|
|
|
|
meta.maintainers = [ ];
|
2020-02-06 16:00:19 +00:00
|
|
|
|
2025-05-24 23:40:23 +08:00
|
|
|
nodes.machine =
|
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
|
|
|
services.jirafeau = {
|
|
|
|
enable = true;
|
2024-12-10 20:26:33 +01:00
|
|
|
};
|
2025-05-24 23:40:23 +08:00
|
|
|
};
|
2020-02-06 16:00:19 +00:00
|
|
|
|
2025-05-24 23:40:23 +08:00
|
|
|
testScript = ''
|
|
|
|
machine.start()
|
|
|
|
machine.wait_for_unit("phpfpm-jirafeau.service")
|
|
|
|
machine.wait_for_unit("nginx.service")
|
|
|
|
machine.wait_for_open_port(80)
|
|
|
|
machine.succeed("curl -sSfL http://localhost/ | grep 'Jirafeau'")
|
|
|
|
'';
|
|
|
|
}
|