blob: 4b472564f315455d480691b1e7c2417520722d02 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
{
config,
lib,
pkgs,
...
}:
# OpenSSH - Secure shell (SSH) client for encrypted remote connections
{
config = lib.mkIf config.programs.ssh.enable {
programs.ssh = {
package = pkgs.openssh;
enableDefaultConfig = false;
extraOptionOverrides = {
AddKeysToAgent = "yes";
ForwardAgent = "yes";
ServerAliveInterval = "60";
ServerAliveCountMax = "3";
VisualHostKey = "yes";
HashKnownHosts = "yes";
};
settings = {
"github.com" = {
hostname = "github.com";
user = "git";
identityFile = "${config.home.homeDirectory}/.ssh/github";
};
};
};
};
}
|