From 7c7597fe2daf26b1a1869161a3130580a320c7e6 Mon Sep 17 00:00:00 2001 From: punkfairie Date: Wed, 13 Nov 2024 21:40:22 -0800 Subject: [PATCH] WIP - ssh --- home/programs/ssh.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 home/programs/ssh.nix diff --git a/home/programs/ssh.nix b/home/programs/ssh.nix new file mode 100644 index 0000000..8447dc3 --- /dev/null +++ b/home/programs/ssh.nix @@ -0,0 +1,22 @@ +{ ... }: +{ + programs.ssh = { + enable = true; + + extraConfig = { + identityFile = "%r@%h"; + }; + + # Equivalent of ~/.ssh/config + matchBlocks = { + "tty.marleycentre" = { + hostname = "admin.punkfairie.net"; + }; + + "tty.marleynet" = { + hostname = "10.69.69.2"; + port = 222; + }; + }; + }; +}