blob: 1088e801c160d8f44078014fa8003083f8f05647 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
{ 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"; };
};
};
};
}
|