moved ssh config to home manager
This commit is contained in:
parent
608b392e56
commit
946fb56e49
2 changed files with 29 additions and 15 deletions
29
home.nix
29
home.nix
|
|
@ -120,6 +120,35 @@ in
|
|||
sway-contrib.grimshot
|
||||
]);
|
||||
|
||||
# Jumphost for deployment on infra
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
enableDefaultConfig = false;
|
||||
matchBlocks = {
|
||||
"infra.cdaut.de" = {
|
||||
hostname = "infra.cdaut.de";
|
||||
user = "clara";
|
||||
forwardAgent = true;
|
||||
};
|
||||
|
||||
"10.0.0.2" = {
|
||||
hostname = "10.0.0.2";
|
||||
proxyJump = "infra.cdaut.de";
|
||||
};
|
||||
"*" = {
|
||||
forwardAgent = true;
|
||||
addKeysToAgent = "no";
|
||||
compression = false;
|
||||
serverAliveInterval = 0;
|
||||
serverAliveCountMax = 3;
|
||||
hashKnownHosts = false;
|
||||
userKnownHostsFile = "~/.ssh/known_hosts";
|
||||
controlMaster = "no";
|
||||
controlPath = "~/.ssh/master-%r@%n:%p";
|
||||
controlPersist = "no";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
fonts.fontconfig.enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue