From f6caac23440b169d37582b191862f1d31a82ca56 Mon Sep 17 00:00:00 2001 From: Paavo Pokkinen Date: Thu, 29 Oct 2026 14:48:34 +0200 Subject: [PATCH] fix(nix): allow local networking in the Darwin build sandbox The proxy unit tests bind listeners on 127.0.0.1. The Darwin Nix build sandbox refuses that with EPERM unless the derivation opts in, so `nix build` on macOS failed 37 proxy::server tests at src/proxy/server/tests.rs:302. The flag only permits localhost networking; the build stays offline. Co-Authored-By: Claude Opus 5.5 (1M context) --- flake.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/flake.nix b/flake.nix index 3cc1763..c07e6eb 100644 --- a/flake.nix +++ b/flake.nix @@ -54,6 +54,9 @@ # The unit tests that apply a sandbox cannot nest one inside the # build sandbox either; build.rs ignores them under this flag. AIRLOCK_NO_NESTED_SANDBOX = "1"; + # The proxy unit tests bind listeners on 127.0.0.1, which the Darwin + # build sandbox refuses with EPERM unless the derivation opts in. + __darwinAllowLocalNetworking = true; meta = { description = "Credential broker for AI agents — tools get your secrets, the agent never does";