From 197b8fcced0cfdead38931c810f5270aac299567 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Mon, 10 Feb 2025 18:14:18 -0500 Subject: [PATCH] Add ssh config. --- nix/configuration/roles/ssh/default.nix | 8 +++++ nix/configuration/roles/ssh/files/ssh_config | 34 ++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 nix/configuration/roles/ssh/files/ssh_config diff --git a/nix/configuration/roles/ssh/default.nix b/nix/configuration/roles/ssh/default.nix index a73875c..ba69def 100644 --- a/nix/configuration/roles/ssh/default.nix +++ b/nix/configuration/roles/ssh/default.nix @@ -20,4 +20,12 @@ ]; }; }; + + home-manager.users.talexander = + { pkgs, ... }: + { + home.file.".ssh/config" = { + source = ./files/ssh_config; + }; + }; } diff --git a/nix/configuration/roles/ssh/files/ssh_config b/nix/configuration/roles/ssh/files/ssh_config new file mode 100644 index 0000000..31c0f00 --- /dev/null +++ b/nix/configuration/roles/ssh/files/ssh_config @@ -0,0 +1,34 @@ +Host poudriere + ProxyJump talexander@mrmanager + HostName 10.215.1.203 + +Host controller0 + ProxyJump talexander@mrmanager + HostName 10.215.1.204 + +Host controller1 + ProxyJump talexander@mrmanager + HostName 10.215.1.205 + +Host controller2 + ProxyJump talexander@mrmanager + HostName 10.215.1.206 + +Host worker0 + ProxyJump talexander@mrmanager + HostName 10.215.1.207 + +Host worker1 + ProxyJump talexander@mrmanager + HostName 10.215.1.208 + +Host worker2 + ProxyJump talexander@mrmanager + HostName 10.215.1.209 + +Host brianai + ProxyJump talexander@mrmanager + HostName 10.215.1.215 + +Host * + Compression yes