mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-26 23:14:57 +08:00
13 lines
272 B
Nix
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
|
|
'';
|
|
}
|