1{ pkgs, ... }:
2{
3 name = "tinyproxy";
4
5 nodes.machine =
6 { config, pkgs, ... }:
7 {
8 services.tinyproxy = {
9 enable = true;
10 settings = {
11 Listen = "127.0.0.1";
12 Port = 8080;
13 };
14 };
15 };
16
17 testScript = ''
18 machine.wait_for_unit("tinyproxy.service")
19 machine.wait_for_open_port(8080)
20
21 machine.succeed('curl -s http://localhost:8080 |grep -i tinyproxy')
22 '';
23}