mirror of
https://github.com/harivansh-afk/nix.git
synced 2026-04-15 06:04:42 +00:00
ssh config
This commit is contained in:
parent
9d9df025d6
commit
0e6d9a341a
5 changed files with 54 additions and 33 deletions
40
home/ssh.nix
Normal file
40
home/ssh.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{...}: {
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
enableDefaultConfig = false;
|
||||
|
||||
includes = [
|
||||
"/Users/rathi/.config/colima/ssh_config"
|
||||
];
|
||||
|
||||
matchBlocks = {
|
||||
aurelius = {
|
||||
hostname = "100.71.160.102";
|
||||
user = "nixos";
|
||||
identityFile = "~/.ssh/id_ed25519";
|
||||
};
|
||||
|
||||
netty = {
|
||||
hostname = "152.53.195.59";
|
||||
user = "rathi";
|
||||
identityFile = "~/.ssh/id_ed25519";
|
||||
};
|
||||
|
||||
"agentcomputer.ai" = {
|
||||
hostname = "ssh.agentcomputer.ai";
|
||||
port = 443;
|
||||
user = "agentcomputer";
|
||||
identityFile = "~/.ssh/id_ed25519";
|
||||
identitiesOnly = true;
|
||||
serverAliveInterval = 30;
|
||||
serverAliveCountMax = 4;
|
||||
};
|
||||
|
||||
"*" = {
|
||||
setEnv = {
|
||||
TERM = "xterm-256color";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue