depot/packages/checks/searxng.nix

20 lines
451 B
Nix
Raw Normal View History

2023-01-31 01:00:53 +02:00
{ nixosTest, searxng, writeText }:
nixosTest {
name = "searxng";
nodes.machine = {
services.searx = {
enable = true;
runInUwsgi = true;
package = searxng;
settings.server.secret_key = "NixOSTestKey";
uwsgiConfig.http = "0.0.0.0:8080";
};
};
testScript = ''
machine.wait_for_unit("uwsgi.service")
machine.wait_for_open_port(8080)
machine.succeed("curl --fail http://127.0.0.1:8080/")
'';
}