mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-26 15:04:59 +08:00
add sshuttle-via
This commit is contained in:
parent
ac7a6e0593
commit
481b667293
3 changed files with 15 additions and 0 deletions
|
|
@ -24,6 +24,7 @@
|
|||
# Dev
|
||||
gh
|
||||
fuckport
|
||||
sshuttle-via
|
||||
];
|
||||
|
||||
home.shellAliases = {
|
||||
|
|
|
|||
|
|
@ -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
13
packages/sshuttle-via.nix
Normal 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
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue