nixos/home/env/ssh.nix

26 lines
530 B
Nix
Raw Normal View History

{ ... }:
{
programs.ssh = {
enable = true;
forwardAgent = true;
serverAliveInterval = 15;
serverAliveCountMax = 3;
controlMaster = "auto";
controlPersist = "1s";
2023-05-04 11:06:31 +01:00
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";
};
};
}