aboutsummaryrefslogblamecommitdiff
path: root/home/profiles/ssh.nix
blob: 576f451f931bbf87df9669935ea4ef4a4d9d448a (plain) (tree)
1
2
3
        
 
                  














                                                                   
{ ... }:
{
  programs.ssh = {
    enable = true;
    forwardAgent = true;
    serverAliveInterval = 60;
    controlMaster = "auto";
    controlPersist = "30m";
    matchBlocks = {
      "github.com" = {
        hostname = "github.com";
        user = "git";
        forwardAgent = false;
        extraOptions = { preferredAuthentications = "publickey"; };
      };
    };
  };
}