From 960a63e48cffc2956064b247db2c9813aa7f92f4 Mon Sep 17 00:00:00 2001 From: Atridad Lahiji Date: Sat, 7 Feb 2026 20:56:08 -0700 Subject: [PATCH] 1770522968 --- modules/home/ssh.nix | 41 +++++++++++++++++++++++------------------ 1 file changed, 23 insertions(+), 18 deletions(-) diff --git a/modules/home/ssh.nix b/modules/home/ssh.nix index 0042342..692b3d7 100644 --- a/modules/home/ssh.nix +++ b/modules/home/ssh.nix @@ -1,19 +1,24 @@ -programs.ssh = { +{ settings, ... }: + +{ + programs.ssh = { enable = true; - extraConfig = " - Host localhost - UserKnownHostsFile /dev/null - - Host tux - HostName tuxworld.usask.ca - User atl175 - - Host haschel - HostName haschel - User fedora - - Host lloyd - HostName lloyd - User truenas_admin - "; -}; + matchBlocks = { + "localhost" = { + extraOptions.UserKnownHostsFile = "/dev/null"; + }; + "tux" = { + hostname = "tuxworld.usask.ca"; + user = "atl175"; + }; + "haschel" = { + hostname = "haschel"; + user = "fedora"; + }; + "lloyd" = { + hostname = "lloyd"; + user = "truenas_admin"; + }; + }; + }; +}