Add macOS specific SSH config
This commit is contained in:
parent
318bfda3b6
commit
548107f7af
@ -1,3 +1,5 @@
|
|||||||
|
{ lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
programs.ssh = {
|
programs.ssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@ -166,6 +168,9 @@
|
|||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
IdentitiesOnly yes
|
IdentitiesOnly yes
|
||||||
ServerAliveInterval 3600
|
ServerAliveInterval 3600
|
||||||
|
'' + lib.optionalString pkgs.stdenv.isDarwin ''
|
||||||
|
UseKeychain yes
|
||||||
|
TCPKeepAlive no
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user