mirror of
https://github.com/gburd/nix-config.git
synced 2024-09-09 11:26:12 +00:00
14 lines
323 B
Nix
14 lines
323 B
Nix
![]() |
# Exposes a port through SSH
|
||
|
# xpo [local port] [remote host] [remote port]
|
||
|
|
||
|
{ lib, writeShellApplication, openssh }: (writeShellApplication {
|
||
|
name = "xpo";
|
||
|
runtimeInputs = [ openssh ];
|
||
|
text = builtins.readFile ./xpo.sh;
|
||
|
}) // {
|
||
|
meta = with lib; {
|
||
|
licenses = licenses.mit;
|
||
|
platforms = platforms.all;
|
||
|
};
|
||
|
}
|