2024-07-23 08:36:03 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
inputs,
|
2024-09-10 10:46:16 +02:00
|
|
|
namespace,
|
2024-07-23 08:36:03 +02:00
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
sshDir = "${config.home.homeDirectory}/.ssh";
|
|
|
|
in {
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
openssh
|
|
|
|
];
|
|
|
|
|
|
|
|
programs.ssh = {
|
|
|
|
enable = true;
|
|
|
|
extraConfig = ''
|
|
|
|
AddKeysToAgent yes
|
|
|
|
'';
|
|
|
|
|
2024-07-25 14:40:42 +02:00
|
|
|
matchBlocks = {
|
|
|
|
"github.com" = {
|
|
|
|
identityFile = "${sshDir}/id_ed25519";
|
|
|
|
identitiesOnly = true;
|
|
|
|
user = "git";
|
|
|
|
};
|
2024-07-23 08:36:03 +02:00
|
|
|
|
2024-07-25 14:40:42 +02:00
|
|
|
"gitlab.com" = {
|
|
|
|
identityFile = "${sshDir}/id_ed25519";
|
|
|
|
identitiesOnly = true;
|
|
|
|
user = "git";
|
|
|
|
};
|
2024-07-23 08:36:03 +02:00
|
|
|
|
2024-07-25 14:40:42 +02:00
|
|
|
"bitbucket.org" = {
|
|
|
|
identityFile = "${sshDir}/id_ed25519";
|
|
|
|
identitiesOnly = true;
|
|
|
|
user = "git";
|
|
|
|
};
|
2024-09-18 21:21:48 +02:00
|
|
|
};
|
2024-07-23 08:36:03 +02:00
|
|
|
};
|
2024-09-10 10:46:16 +02:00
|
|
|
}
|