2024-07-30 15:06:34 +01:00
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
2024-07-03 07:15:39 +01:00
|
|
|
home.packages = with pkgs; [
|
2024-07-30 15:06:34 +01:00
|
|
|
(writeShellScriptBin "ssh-keygen-defaults" ''ssh-keygen -t ed25519 -C "$(whoami)@$(hostname)"'')
|
2024-07-03 07:15:39 +01:00
|
|
|
];
|
|
|
|
programs.ssh = {
|
|
|
|
enable = true;
|
|
|
|
addKeysToAgent = "yes";
|
|
|
|
forwardAgent = true;
|
|
|
|
compression = true;
|
|
|
|
serverAliveInterval = 15;
|
|
|
|
serverAliveCountMax = 3;
|
|
|
|
controlMaster = "auto";
|
|
|
|
controlPersist = "10s";
|
2024-07-16 10:06:36 +01:00
|
|
|
extraConfig = ''
|
|
|
|
SetEnv TERM=xterm-256color
|
|
|
|
'';
|
2024-07-03 07:15:39 +01:00
|
|
|
matchBlocks = {
|
|
|
|
"git*".user = "git";
|
|
|
|
"legion" = {
|
|
|
|
user = "pixelifytica";
|
|
|
|
hostname = "192.168.0.31";
|
|
|
|
};
|
|
|
|
"vanguard" = {
|
|
|
|
user = "pixelifytica";
|
|
|
|
hostname = "192.168.0.90";
|
|
|
|
};
|
|
|
|
"ionos" = {
|
|
|
|
user = "root";
|
|
|
|
hostname = "77.68.67.133";
|
|
|
|
};
|
|
|
|
"freia" = {
|
|
|
|
user = "elitherl";
|
|
|
|
hostname = "freia027.hpc.l";
|
2024-08-05 14:50:09 +01:00
|
|
|
compression = true;
|
2024-07-03 07:15:39 +01:00
|
|
|
};
|
|
|
|
"heimdall" = {
|
|
|
|
user = "elitherl";
|
2024-08-05 14:50:09 +01:00
|
|
|
hostname = "10.40.4.115"; # heimdall115.jetdata.eu
|
|
|
|
compression = true;
|
2024-07-03 07:15:39 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|