blob: 1088e801c160d8f44078014fa8003083f8f05647 (
plain) (
tree)
|
|
{ config, lib, ... }:
let cfg = config.my.home.ssh;
in {
options.my.home.ssh = with lib; {
enable = mkEnableOption "ssh configuration";
};
config.programs.ssh = lib.mkIf cfg.enable {
enable = true;
forwardAgent = true;
serverAliveInterval = 60;
controlMaster = "auto";
controlPersist = "30m";
matchBlocks = {
"github.com" = {
hostname = "github.com";
user = "git";
forwardAgent = false;
extraOptions = { preferredAuthentications = "publickey"; };
};
};
};
}
|