From 548107f7afa98a186ad08fccf97b1ffa920a8cf7 Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Fri, 14 Oct 2022 14:49:36 +0200 Subject: [PATCH] Add macOS specific SSH config --- roles/home/ssh.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/home/ssh.nix b/roles/home/ssh.nix index a625ef3..66d1f72 100644 --- a/roles/home/ssh.nix +++ b/roles/home/ssh.nix @@ -1,3 +1,5 @@ +{ lib, pkgs, ... }: + { programs.ssh = { enable = true; @@ -166,6 +168,9 @@ extraConfig = '' IdentitiesOnly yes ServerAliveInterval 3600 + '' + lib.optionalString pkgs.stdenv.isDarwin '' + UseKeychain yes + TCPKeepAlive no ''; }; }