home_packages: add ssh proxy script

This commit is contained in:
Asmir A 2024-04-01 01:00:33 +02:00
parent 9e9d70785b
commit 6bdd7be056
Signed by: asmir
GPG Key ID: 020C42B7A9ABA3E2

View File

@ -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 {})