1{ pkgs, lib, ... }:
2{
3 name = "whoogle-search";
4 meta.maintainers = with lib.maintainers; [ malte-v ];
5
6 nodes.machine =
7 { pkgs, ... }:
8 {
9 services.whoogle-search = {
10 enable = true;
11 port = 5000;
12 listenAddress = "127.0.0.1";
13 };
14 };
15
16 testScript = ''
17 machine.start()
18 machine.wait_for_unit("whoogle-search.service")
19 machine.wait_for_open_port(5000)
20 machine.wait_until_succeeds("curl --fail --show-error --silent --location localhost:5000/")
21 '';
22}