1{ lib, pkgs, ... }:
2{
3
4 name = "dae";
5
6 meta = {
7 maintainers = with lib.maintainers; [ oluceps ];
8 };
9
10 nodes.machine =
11 { pkgs, ... }:
12 {
13 environment.systemPackages = [ pkgs.curl ];
14 services.nginx = {
15 enable = true;
16 statusPage = true;
17 };
18 services.dae = {
19 enable = true;
20 config = ''
21 global { disable_waiting_network: true }
22 routing{}
23 '';
24 };
25 };
26
27 testScript = ''
28 machine.wait_for_unit("nginx.service")
29 machine.wait_for_unit("dae.service")
30
31 machine.wait_for_open_port(80)
32
33 machine.succeed("curl --fail --max-time 10 http://localhost")
34 '';
35
36}