nixos-config/packages/sshuttle-via.nix
Sridhar Ratnakumar 481b667293 add sshuttle-via
2024-03-15 18:41:06 -04:00

13 lines
272 B
Nix

{ writeShellApplication, sshuttle, ... }:
writeShellApplication {
name = "sshuttle-via";
meta.description = ''
Proxy HTTP traffic to the specified machine while we run.
'';
runtimeInputs = [ sshuttle ];
text = ''
set -x
sshuttle -r "$1" 0/0
'';
}