mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
23 lines
430 B
Nix
23 lines
430 B
Nix
{ pkgs, ... }:
|
|
{
|
|
name = "tinyproxy";
|
|
|
|
nodes.machine =
|
|
{ config, pkgs, ... }:
|
|
{
|
|
services.tinyproxy = {
|
|
enable = true;
|
|
settings = {
|
|
Listen = "127.0.0.1";
|
|
Port = 8080;
|
|
};
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
machine.wait_for_unit("tinyproxy.service")
|
|
machine.wait_for_open_port(8080)
|
|
|
|
machine.succeed('curl -s http://localhost:8080 |grep -i tinyproxy')
|
|
'';
|
|
}
|