1{ lib, ... }:
2
3let
4 nodes = {
5 machine = {
6 services.alloy = {
7 enable = true;
8 };
9 environment.etc."alloy/config.alloy".text = "";
10 };
11 };
12in
13{
14 name = "alloy";
15
16 meta = with lib.maintainers; {
17 maintainers = [
18 flokli
19 hbjydev
20 ];
21 };
22
23 inherit nodes;
24
25 testScript = ''
26 start_all()
27
28 machine.wait_for_unit("alloy.service")
29 machine.wait_for_open_port(12345)
30 machine.succeed(
31 "curl -sSfN http://127.0.0.1:12345/-/healthy"
32 )
33 machine.shutdown()
34 '';
35}