From 54e0b0f2760518e90aec8c40784427a440bfbac7 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Wed, 8 Jul 2026 16:04:06 -0400 Subject: [PATCH] xb --- configurations/nixos/pureintent/devbox.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/configurations/nixos/pureintent/devbox.nix b/configurations/nixos/pureintent/devbox.nix index 15fc458..50f9e21 100644 --- a/configurations/nixos/pureintent/devbox.nix +++ b/configurations/nixos/pureintent/devbox.nix @@ -18,12 +18,18 @@ let exec ${proxychainsBin} "$@" ''; - puBin = "${flake.inputs.project-unknown.packages.${pkgs.stdenv.hostPlatform.system}.default}/bin/pu"; + xbPkg = flake.inputs.xyne-boxes.packages.${pkgs.stdenv.hostPlatform.system}.default; + # Context: https://github.com/juspay/xyne-boxes/pull/14#issuecomment-4918563982 + puHost = "10.10.68.56"; - pu = pkgs.writeShellScriptBin "pu" '' + wrapXyneBoxes = name: pkgs.writeShellScriptBin name '' ${proxyExports} - exec ${proxychainsBin} ${puBin} "$@" + export PU_HOST=${puHost} + exec ${proxychainsBin} ${xbPkg}/bin/${name} "$@" ''; + + xyne-boxes = wrapXyneBoxes "xyne-boxes"; + pu = wrapXyneBoxes "pu"; in { programs.proxychains = { @@ -42,6 +48,7 @@ in environment.systemPackages = [ vanjaram-run pu + xyne-boxes ]; # pu writes per-instance ssh_config files under ~/.pu-state//. Including