76 lines
1.5 KiB
Nix
76 lines
1.5 KiB
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
programs.ssh = {
|
|
enable = true;
|
|
enableDefaultConfig = false;
|
|
|
|
matchBlocks = {
|
|
|
|
"*" = {
|
|
addKeysToAgent = "yes";
|
|
};
|
|
|
|
"github.com" = {
|
|
hostname = "github.com";
|
|
user = "git";
|
|
identityFile = "~/.ssh/keys/github";
|
|
};
|
|
|
|
"aicloud" = {
|
|
hostname = "ai-fe02.srv.aau.dk";
|
|
user = "hb05nk@cs.aau.dk";
|
|
identityFile = "~/.ssh/keys/aicloud";
|
|
};
|
|
|
|
"hs" = {
|
|
hostname = "10.2.2.20";
|
|
user = "yanlin";
|
|
identityFile = "~/.ssh/keys/nas";
|
|
setEnv = {
|
|
TERM = "xterm-256color";
|
|
};
|
|
proxyJump = "vps";
|
|
};
|
|
|
|
"hs.lan" = {
|
|
hostname = "lan.hs.yanlincs.com";
|
|
user = "yanlin";
|
|
identityFile = "~/.ssh/keys/nas";
|
|
setEnv = {
|
|
TERM = "xterm-256color";
|
|
};
|
|
};
|
|
|
|
"thinkpad" = {
|
|
hostname = "10.2.2.30";
|
|
user = "yanlin";
|
|
identityFile = "~/.ssh/keys/thinkpad";
|
|
setEnv = {
|
|
TERM = "xterm-256color";
|
|
};
|
|
proxyJump = "vps";
|
|
};
|
|
|
|
"vps" = {
|
|
hostname = "91.98.84.215";
|
|
user = "yanlin";
|
|
identityFile = "~/.ssh/keys/hetzner";
|
|
};
|
|
|
|
"deck" = {
|
|
hostname = "deck.lan";
|
|
user = "yanlin";
|
|
identityFile = "~/.ssh/keys/deck";
|
|
};
|
|
|
|
"borg-box" = {
|
|
hostname = "u501367.your-storagebox.de";
|
|
user = "u501367";
|
|
port = 23;
|
|
identityFile = "~/.ssh/keys/hetzner";
|
|
};
|
|
|
|
};
|
|
};
|
|
}
|