|
|
@@ -1,29 +1,28 @@
|
|
|
-{ config
|
|
|
-, lib
|
|
|
-, ...
|
|
|
-}:
|
|
|
-let
|
|
|
- configHome = "${config.xdg.configHome}/gnupg";
|
|
|
-in
|
|
|
{
|
|
|
- home.sessionVariables = {
|
|
|
- SSH_AUTH_SOCK = lib.mkDefault "${configHome}/S.gpg-agent.ssh";
|
|
|
- };
|
|
|
-
|
|
|
programs.ssh = {
|
|
|
enable = true;
|
|
|
- compression = true;
|
|
|
- forwardAgent = true;
|
|
|
+ enableDefaultConfig = false;
|
|
|
|
|
|
extraConfig = ''
|
|
|
StreamLocalBindUnlink yes
|
|
|
'';
|
|
|
|
|
|
+ matchBlocks."*" = {
|
|
|
+ forwardAgent = true;
|
|
|
+ compression = true;
|
|
|
+ serverAliveInterval = 0;
|
|
|
+ serverAliveCountMax = 3;
|
|
|
+ hashKnownHosts = false;
|
|
|
+ userKnownHostsFile = "~/.ssh/known_hosts";
|
|
|
+ };
|
|
|
+
|
|
|
matchBlocks = {
|
|
|
- "github.com".user = "git";
|
|
|
- "codeberg.org".user = "git";
|
|
|
github.hostname = "github.com";
|
|
|
+ github.user = "git";
|
|
|
codeberg.hostname = "codeberg.org";
|
|
|
+ codeberg.user = "git";
|
|
|
+ "github.com".user = "git";
|
|
|
+ "codeberg.org".user = "git";
|
|
|
};
|
|
|
};
|
|
|
}
|