mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-26 15:04:59 +08:00
launchd agent
This commit is contained in:
parent
f0f0d72b16
commit
5034fa8cd7
1 changed files with 21 additions and 0 deletions
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue