47 lines
1.1 KiB
Nix
47 lines
1.1 KiB
Nix
{ pkgs, lib, ... }:
|
|
{
|
|
programs.ssh = {
|
|
enable = true;
|
|
forwardAgent = true;
|
|
serverAliveInterval = 15;
|
|
serverAliveCountMax = 3;
|
|
controlMaster = "auto";
|
|
controlPersist = "1s";
|
|
matchBlocks = {
|
|
"legion xenia xenia.me.uk" = {
|
|
user = "xenia";
|
|
hostname = "xenia.me.uk";
|
|
port = 30;
|
|
forwardAgent = true;
|
|
};
|
|
"vanguard" = {
|
|
user = "xenia";
|
|
hostname = "192.168.1.166";
|
|
forwardAgent = true;
|
|
};
|
|
"git.ccfe.ac.uk".user = "git";
|
|
"batch" = {
|
|
user = "cxsbatch";
|
|
hostname = "heimdall115.jetdata.eu";
|
|
};
|
|
"freia" = {
|
|
hostname = "freia022.hpc.l";
|
|
remoteForwards = [
|
|
{
|
|
bind.port = 6702;
|
|
host.address = "localhost";
|
|
host.port = 6702;
|
|
}
|
|
];
|
|
};
|
|
"freia???" = lib.hm.dag.entryAfter ["freia"] {
|
|
hostname = "%h.hpc.l";
|
|
};
|
|
"freia*" = lib.hm.dag.entryAfter ["freia???"] {
|
|
user = "elitherl";
|
|
};
|
|
};
|
|
};
|
|
home.packages = with pkgs; [ sshfs ];
|
|
}
|