diff --git a/home/lyc/configurations/amalthea/default.nix b/home/lyc/configurations/amalthea/default.nix index 96831eb..723de4e 100644 --- a/home/lyc/configurations/amalthea/default.nix +++ b/home/lyc/configurations/amalthea/default.nix @@ -1,6 +1,10 @@ { pkgs, lib, config, ... }: { + imports = [ + ./ssh-proxy.nix + ]; + home.packages = with pkgs; [ pinentry_mac clash-meta @@ -14,6 +18,4 @@ enable = true; userSettings = (builtins.fromJSON (builtins.readFile ./vscode-settings.json)); }; - - programs.ssh.matchBlocks.swyjs.proxyCommand = "nc -x 127.0.0.1:1081 %h %p"; } diff --git a/home/lyc/configurations/amalthea/ssh-proxy.nix b/home/lyc/configurations/amalthea/ssh-proxy.nix new file mode 100644 index 0000000..cd7b82c --- /dev/null +++ b/home/lyc/configurations/amalthea/ssh-proxy.nix @@ -0,0 +1,15 @@ +{ ... }: +let + metisProxyICT = "llvmws.lyc.dev:20179"; + metisProxySW = "llvmws.lyc.dev:20178"; + proxyCommandSW = "nc -x ${metisProxySW} %h %p"; + proxyCommandICT = "nc -x ${metisProxyICT} %h %p"; +in +{ + programs.ssh.matchBlocks = { + ict-malcon.proxyCommand = proxyCommandICT; + ict-sw.proxyCommand = proxyCommandICT; + ict-repo.proxyCommand = proxyCommandICT; + swyjs.proxyCommand = proxyCommandSW; + }; +}