blob: cd69122565c44aacf9c2599be6f70002a7368140 (
plain) (
tree)
|
|
{ config, ... }:
{
# https://github.com/nix-community/home-manager/blob/master/modules/programs/ssh.nix
programs.ssh = {
enable = true;
forwardAgent = true;
serverAliveInterval = 60;
controlMaster = "auto";
controlPersist = "30m";
controlPath = "${config.home.homeDirectory}/.ssh/sockets/S.%r@%h:%p";
matchBlocks = {
"github.com" = {
hostname = "github.com";
user = "git";
forwardAgent = false;
extraOptions = {
preferredAuthentications = "publickey";
};
};
"github.rbx.com" = {
hostname = "github.rbx.com";
user = "git";
forwardAgent = false;
extraOptions = {
preferredAuthentications = "publickey";
};
};
};
};
home.file = {
# we need this path to be created so that the control path can be used.
".ssh/sockets/.keep".text = "# Managed by Home Manager";
};
}
|