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; + }; + }; + }; +}