home_packages: add ssh proxy script
This commit is contained in:
parent
9e9d70785b
commit
6bdd7be056
@ -11,6 +11,14 @@
|
||||
chromium_discord = pkgs.writeShellScriptBin "chromium_discord" ''
|
||||
${pkgs.chromium}/bin/chromium --socket=wayland org.chromium.Chromium --app=https://discordapp.com/channels/@me
|
||||
'';
|
||||
ssh_proxy = pkgs.writeShellScriptBin "ssh_proxy" ''
|
||||
if ${pkgs.coreutils}/bin/test $# -ne 1; then
|
||||
echo "Usage: $0 <user>@<ssh_host>"
|
||||
exit
|
||||
fi
|
||||
PROXY_PORT="1337"
|
||||
${pkgs.openssh}/bin/ssh -D "$PROXY_PORT" -q -N "$@"
|
||||
'';
|
||||
in {
|
||||
home.packages = with pkgs;
|
||||
[
|
||||
@ -25,8 +33,6 @@ in {
|
||||
caddy
|
||||
cargo
|
||||
chromium
|
||||
chromium_discord
|
||||
chromium_teams
|
||||
cmake
|
||||
compsize
|
||||
cura
|
||||
@ -106,6 +112,11 @@ in {
|
||||
zeal-qt6
|
||||
zig
|
||||
]
|
||||
++ [
|
||||
chromium_discord
|
||||
chromium_teams
|
||||
ssh_proxy
|
||||
]
|
||||
++ [
|
||||
inputs.swaysw.packages.${system}.swaysw
|
||||
(pkgs.callPackage ../packages/viber/default.nix {})
|
||||
|
Loading…
Reference in New Issue
Block a user