Skip to content

Commit

Permalink
home/amalthea: add ssh-proxy configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
inclyc committed Feb 26, 2024
1 parent dcbddcb commit 121aaba
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
6 changes: 4 additions & 2 deletions home/lyc/configurations/amalthea/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{ pkgs, lib, config, ... }:
{

imports = [
./ssh-proxy.nix
];

home.packages = with pkgs; [
pinentry_mac
clash-meta
Expand All @@ -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";
}
15 changes: 15 additions & 0 deletions home/lyc/configurations/amalthea/ssh-proxy.nix
Original file line number Diff line number Diff line change
@@ -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;
};
}

0 comments on commit 121aaba

Please sign in to comment.