add sshuttle-via

This commit is contained in:
Sridhar Ratnakumar 2024-03-15 18:41:06 -04:00
parent ac7a6e0593
commit 481b667293
3 changed files with 15 additions and 0 deletions

View file

@ -24,6 +24,7 @@
# Dev
gh
fuckport
sshuttle-via
];
home.shellAliases = {

View file

@ -3,6 +3,7 @@
self: super: {
fuckport = self.callPackage ./fuckport.nix { };
twitter-convert = self.callPackage ./twitter-convert { };
sshuttle-via = self.callPackage ./sshuttle-via.nix { };
nixci = flake.inputs.nixci.packages.${system}.default;
nix-health = flake.inputs.nix-browser.packages.${system}.nix-health;
actual = flake.inputs.actual.packages.${system}.default;

13
packages/sshuttle-via.nix Normal file
View file

@ -0,0 +1,13 @@
{ 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
'';
}