aboutsummaryrefslogtreecommitdiff
path: root/hosts/mercury/nixos.nix
diff options
context:
space:
mode:
authorCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2026-01-25 22:32:59 -0600
committerCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2026-01-25 22:32:59 -0600
commit94f08f5ca042cd2d65379b13767096936f8028ce (patch)
tree2de57e60d2a375c808f039e560fa42be8e79b2f4 /hosts/mercury/nixos.nix
parent606b7ae3bb2b45e094132dbec4574faa4317331f (diff)
changes
Diffstat (limited to 'hosts/mercury/nixos.nix')
-rw-r--r--hosts/mercury/nixos.nix18
1 files changed, 9 insertions, 9 deletions
diff --git a/hosts/mercury/nixos.nix b/hosts/mercury/nixos.nix
index 6d269fe..da8b647 100644
--- a/hosts/mercury/nixos.nix
+++ b/hosts/mercury/nixos.nix
@@ -33,21 +33,21 @@
programs.ssh.extraConfig = ''
Host ganymede
- HostName williamsfam.us.com
- User collin
- IdentityFile /home/collin/.ssh/id_ed25519
LocalForward 8010 127.0.0.1:8010
+
+ Match host ganymede !exec "nc -z -w1 192.168.50.2 2222"
+ HostName williamsfam.us.com
+ Port 22
DynamicForward 9090
- Host ganymede-deploy
- HostName 192.168.0.2
- User root
- IdentityFile /home/collin/.ssh/id_ed25519
+ Match host ganymede exec "nc -z -w1 192.168.50.2 2222"
+ HostName 192.168.50.2
+ Port 2222
Host io
Hostname 192.168.50.3
- User admin
- IdentityFile /home/collin/.ssh/id_ed25519
+
+ Match host io !exec "nc -z -w1 192.168.50.3 22"
ProxyJump ganymede
'';
}