nixos/home/ssh/common.nix

16 lines
304 B
Nix
Raw Normal View History

{ ... }:
{
programs.ssh = {
enable = true;
forwardAgent = true;
serverAliveInterval = 15;
serverAliveCountMax = 3;
controlMaster = "auto";
controlPersist = "1s";
2023-05-16 11:04:48 +01:00
matchBlocks = {
"git.*".user = "git";
"xenia.me.uk" = { user = "git"; port = 2222; };
};
};
}