1 import ./make-test-python.nix ({ lib, pkgs, ... }: let
5 id = "a6a46834-2150-45f8-8364-0f6f6ab32384";
6 alterId = 0; # Non-zero support will be disabled in the future.
9 # 1080 [http proxy] -> 1081 [vmess] -> direct
23 settings.clients = [ v2rayUser ];
31 address = "127.0.0.1";
33 users = [ v2rayUser ];
44 inboundTag = "http_in";
45 outboundTag = "vmess_out";
49 inboundTag = "vmess_in";
50 outboundTag = "direct";
53 # Assert assets "geoip" and "geosite" are accessible.
56 ip = [ "geoip:private" ];
57 domain = [ "geosite:category-ads" ];
58 outboundTag = "direct";
65 meta = with lib.maintainers; {
66 maintainers = [ servalcatty ];
68 nodes.machine = { pkgs, ... }: {
69 environment.systemPackages = [ pkgs.curl ];
76 adminAddr = "foo@example.org";
83 machine.wait_for_unit("httpd.service")
84 machine.wait_for_unit("v2ray.service")
85 machine.wait_for_open_port(80)
86 machine.wait_for_open_port(1080)
88 "curl --fail --max-time 10 --proxy http://localhost:1080 http://localhost"