nixos/home/ssh/default.nix

39 lines
824 B
Nix
Raw Normal View History

{...}: {
programs.ssh = {
enable = true;
forwardAgent = true;
compression = true;
serverAliveInterval = 15;
serverAliveCountMax = 3;
controlMaster = "auto";
controlPersist = "10s";
extraConfig = ''
AddKeysToAgent=yes
SetEnv TERM=xterm-256color
'';
matchBlocks = {
"git*".user = "git";
"legion" = {
2024-03-08 07:05:28 +00:00
user = "pixelifytica";
hostname = "192.168.0.205";
};
2024-02-12 13:31:38 +00:00
"vanguard" = {
2024-03-08 07:05:28 +00:00
user = "pixelifytica";
hostname = "192.168.0.90";
2024-02-12 13:31:38 +00:00
};
"ionos" = {
user = "root";
hostname = "77.68.67.133";
};
"freia" = {
user = "elitherl";
hostname = "freia020.hpc.l";
};
"heimdall" = {
user = "elitherl";
hostname = "heimdall003.jet.uk";
};
};
};
}