43 lines
849 B
Nix
43 lines
849 B
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
programs.ssh = {
|
|
enable = true;
|
|
addKeysToAgent = "yes";
|
|
|
|
matchBlocks = {
|
|
|
|
"github.com" = {
|
|
hostname = "github.com";
|
|
user = "git";
|
|
identityFile = "~/.ssh/keys/github";
|
|
};
|
|
|
|
"aicloud" = {
|
|
hostname = "aicloud";
|
|
user = "hb05nk@cs.aau.dk";
|
|
identityFile = "~/.ssh/keys/aicloud";
|
|
proxyJump = "pi";
|
|
};
|
|
|
|
"nas" = {
|
|
hostname = "nas.hw.yanlincs.com";
|
|
user = "root";
|
|
identityFile = "~/.ssh/keys/nas";
|
|
};
|
|
|
|
"pi" = {
|
|
hostname = "pi.hw.yanlincs.com";
|
|
user = "yanlin";
|
|
identityFile = "~/.ssh/keys/pi";
|
|
};
|
|
|
|
"personal-vps" = {
|
|
hostname = "personal.vps.yanlincs.com";
|
|
user = "root";
|
|
identityFile = "~/.ssh/keys/hetzner";
|
|
};
|
|
|
|
};
|
|
};
|
|
}
|