kore / home / features / cli / ssh.nix34 lines · 755B · raw
1{
2 programs.ssh = {
3 enable = true;
4
5 # Replaces the soon-to-be-removed legacy defaults; values mirror the
6 # old programs.ssh.settings."*" block.
7 enableDefaultConfig = false;
8
9 settings = {
10 "*" = {
11 ForwardAgent = false;
12 AddKeysToAgent = "no";
13 Compression = false;
14 ServerAliveInterval = 30;
15 ServerAliveCountMax = 3;
16 HashKnownHosts = false;
17 UserKnownHostsFile = "~/.ssh/known_hosts";
18 ControlMaster = "no";
19 ControlPath = "~/.ssh/master-%r@%n:%p";
20 ControlPersist = "no";
21 };
22
23 gh = {
24 HostName = "github.com";
25 User = "git";
26 };
27
28 ld = {
29 HostName = "git.lostduk.com";
30 User = "git";
31 };
32 };
33 };
34}