launchd agent

This commit is contained in:
Sridhar Ratnakumar 2025-11-20 13:58:18 -05:00
parent f0f0d72b16
commit 5034fa8cd7

View file

@ -1,4 +1,5 @@
# For Juspay work
{ pkgs, config, ... }:
let
vanjaram = "vanjaram.tail12b27.ts.net"; # Shared with my tailnet
in
@ -32,4 +33,24 @@ in
};
}];
};
# SOCKS5 proxy via SSH tunnel to vanjaram
launchd.agents.juspay-socks5-proxy = {
enable = true;
config = {
ProgramArguments = [
"${pkgs.openssh}/bin/ssh"
"-D" # Dynamic port forwarding (SOCKS proxy)
"1080"
"-N" # Don't execute remote command
# "-q" # Quiet mode (suppress warnings)
"-C" # Enable compression
vanjaram
];
KeepAlive = true;
RunAtLoad = true;
StandardOutPath = "${config.home.homeDirectory}/Library/Logs/socks5-proxy.log";
StandardErrorPath = "${config.home.homeDirectory}/Library/Logs/socks5-proxy.err";
};
};
}