From e3f74fa118bee94fc0a51b7758ca1d7a7e8871eb Mon Sep 17 00:00:00 2001 From: Nathan McCarty Date: Sun, 24 Apr 2022 17:39:32 -0400 Subject: [PATCH] Add basic ssh config --- home.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/home.nix b/home.nix index 1dbf071..4c6230c 100644 --- a/home.nix +++ b/home.nix @@ -152,6 +152,25 @@ }; }; }; + # SSH configuration + programs.ssh = { + enable = true; + # extra config to set the ciphers + extraConfig = '' + Ciphers aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr + ''; + # enable session reuse + controlMaster = "auto"; + controlPersist = "10m"; + # Configure known hosts + matchBlocks = { + "levitation" = { + forwardAgent = true; + user = "nathan"; + hostname = "172.23.12.134"; + }; + }; + }; }; }; ## Misc packages that were in user.nix