Add macOS specific SSH config

This commit is contained in:
Giulio De Pasquale 2022-10-14 14:49:36 +02:00
parent 318bfda3b6
commit 548107f7af

View File

@ -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
'';
};
}