blob: a61b82bbf1681e81de469300c47bc6d889b3e4b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
{ lib, ... }:
{
name = "hyphanet";
meta = {
maintainers = with lib.maintainers; [ nagy ];
};
nodes = {
machine = {
services.hyphanet.enable = true;
};
};
testScript = ''
machine.wait_for_unit("hyphanet.service")
machine.wait_for_open_port(8888)
machine.wait_until_succeeds("curl -sfL http://localhost:8888/ | grep Freenet")
machine.succeed("systemctl stop hyphanet")
'';
}
|