diff options
Diffstat (limited to 'home/ebisu/kansai/system/ssh.nix')
| -rw-r--r-- | home/ebisu/kansai/system/ssh.nix | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/home/ebisu/kansai/system/ssh.nix b/home/ebisu/kansai/system/ssh.nix new file mode 100644 index 0000000..6a47791 --- /dev/null +++ b/home/ebisu/kansai/system/ssh.nix @@ -0,0 +1,46 @@ +{ config, secrets, ... }: +{ + programs.ssh = { + enable = true; + addKeysToAgent = "yes"; + serverAliveInterval = 60; + serverAliveCountMax = 10; + + extraConfig = '' + IgnoreUnknown UseKeychain + UseKeychain yes + IPQoS lowdelay throughput + ''; + + matchBlocks = { + "akashi" = { }; + "himeji".user = "root"; + "watson".user = "root"; + + "github.com" = { + user = "git"; + identityFile = "${config.home.homeDirectory}/.ssh/id_rsa"; + }; + + "aur.archlinux.org" = { + user = "aur"; + identityFile = "${config.home.homeDirectory}/.ssh/aur"; + }; + + "seti" = { + user = "root"; + port = 2222; + identityFile = "${config.home.homeDirectory}/.ssh/seti"; + }; + + "oit" = { + inherit (secrets.ssh.oit) hostname user; + }; + + "eu.nixbuild.net" = { + port = 2222; + identityFile = "${config.home.homeDirectory}/.ssh/id_ed25519.1"; + }; + }; + }; +} |