moved ssh config to home manager
This commit is contained in:
parent
608b392e56
commit
946fb56e49
2 changed files with 29 additions and 15 deletions
|
|
@ -80,21 +80,6 @@
|
||||||
dnsovertls = "true";
|
dnsovertls = "true";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
# Jumphost for deployment on infra
|
|
||||||
programs.ssh = {
|
|
||||||
extraConfig = "
|
|
||||||
Host jumphost
|
|
||||||
hostname infra.cdaut.de
|
|
||||||
user clara
|
|
||||||
|
|
||||||
Host internal
|
|
||||||
hostname 10.0.0.0/16
|
|
||||||
user clara
|
|
||||||
proxyJump jumphost
|
|
||||||
";
|
|
||||||
};
|
|
||||||
|
|
||||||
services.gvfs.enable = true;
|
services.gvfs.enable = true;
|
||||||
|
|
||||||
# VPN services
|
# VPN services
|
||||||
|
|
|
||||||
29
home.nix
29
home.nix
|
|
@ -120,6 +120,35 @@ in
|
||||||
sway-contrib.grimshot
|
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;
|
fonts.fontconfig.enable = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue