2023-10-03 13:15:32 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
2023-09-15 07:13:52 +01:00
|
|
|
home.packages = with pkgs; [ sshfs ];
|
|
|
|
programs = {
|
|
|
|
ssh = {
|
|
|
|
enable = true;
|
|
|
|
forwardAgent = true;
|
|
|
|
serverAliveInterval = 15;
|
|
|
|
serverAliveCountMax = 3;
|
|
|
|
controlMaster = "auto";
|
|
|
|
controlPersist = "10s";
|
|
|
|
extraConfig = ''
|
|
|
|
AddKeysToAgent=yes
|
|
|
|
SetEnv TERM=xterm-256color
|
|
|
|
'';
|
|
|
|
matchBlocks = {
|
|
|
|
"vanguard" = {
|
|
|
|
user = "xenia";
|
|
|
|
hostname = "192.168.1.166";
|
|
|
|
};
|
|
|
|
"legion" = {
|
|
|
|
user = "xenia";
|
|
|
|
hostname = "192.168.1.230";
|
|
|
|
};
|
|
|
|
"ionos" = {
|
|
|
|
user = "root";
|
|
|
|
hostname = "77.68.67.133";
|
|
|
|
};
|
2023-10-03 13:15:32 +01:00
|
|
|
"freia".hostname = "freia020.hpc.l";
|
|
|
|
"freia???" =
|
|
|
|
lib.hm.dag.entryAfter [ "freia" ] { hostname = "%h.hpc.l"; };
|
|
|
|
"heimdall".hostname = "heimdall003.jet.uk";
|
|
|
|
"heimdall???" =
|
|
|
|
lib.hm.dag.entryAfter [ "heimdall" ] { hostname = "%h.jet.uk"; };
|
|
|
|
"freia* heimdall*" = lib.hm.dag.entryAfter [
|
|
|
|
"freia"
|
|
|
|
"freia???"
|
|
|
|
"heimdall"
|
|
|
|
"heimdall???"
|
|
|
|
] {
|
|
|
|
user = "elitherl";
|
|
|
|
compression = true;
|
|
|
|
};
|
2023-09-15 07:13:52 +01:00
|
|
|
"git*".user = "git";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|