Files
proxy-suite-flake/windows/flake.nix
T
faumarayandClaude Opus 5.5 2c4cdee7d3 windows: AmneziaWG outbounds, and WARP through wireproxy
- ps_core::awg: upstream's scripts/amneziawg_config.py, ported: a profile
  from a .conf, an AmneziaVPN vpn:// link (qCompress'd JSON or the compact
  .conf form, containers and DNS placeholders as upstream reads them) or
  declarative settings (with obfuscationFile's secrets); AWG 3's MTU
  default, the endpoint override, upstream's checks (no wg-quick hooks
  unless allowed, no control characters, one [Interface]); and the
  wireproxy configuration. Checked against links made by upstream's own
  encoder, output byte for byte.
- wireproxy-awg for Windows, built from upstream's tag (pinned to its
  commit) with upstream's patches, by tools/build-wireproxy-awg.sh; in
  the release as a bundled component. Go joins the dev shell.
- The service runs one per "userspace" AmneziaWG outbound and WARP
  device, on its loopback port with the hop login, its configuration
  below the protected state root; "singBox" profiles reach the renderer.
  wireproxy goes direct under the TUN.
- End to end on Linux (an_amneziawg_tunnel): sing-box as the WireGuard
  server, the service's wireproxy as the client; a page through its
  listener and through the proxy's outbound, named inside the tunnel.
- What is still to come and said: AmneziaWG as a system-wide VPN.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 12:32:43 +03:00

70 lines
1.7 KiB
Nix

{
description = "Proxy Suite for Windows: development shell";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs =
{ nixpkgs, ... }:
let
systems = [
"x86_64-linux"
"aarch64-linux"
];
forAll = nixpkgs.lib.genAttrs systems;
in
{
devShells = forAll (
system:
let
pkgs = import nixpkgs { inherit system; };
# GPUI also runs on Linux, so the GUI can be tried here before a Windows build.
guiLibs = with pkgs; [
libxkbcommon
wayland
vulkan-loader
libx11
libxcb
libxcursor
libxi
libxrandr
fontconfig
freetype
alsa-lib
];
in
{
default = pkgs.mkShell {
packages = with pkgs; [
rustup
pkg-config
cargo-xwin
clang
lld
llvm
pkgsCross.mingwW64.stdenv.cc
# The backends, to check rendered configs and run the service on Linux.
sing-box
xray
python3
jq
zip
unzip
curl
git
python3Packages.pip
# The SSH tunnel's end-to-end test runs an sshd of its own.
openssh
# wireproxy-awg and whitelist-bypass, built from source (Go cross-compiles).
go
];
buildInputs = guiLibs;
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath guiLibs;
shellHook = ''
export PATH="$HOME/.cargo/bin:$PATH"
'';
};
}
);
};
}