2021-02-20 16:25:55 +01:00
|
|
|
{ ... }:
|
|
|
|
{
|
|
|
|
programs.ssh = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
matchBlocks = {
|
|
|
|
"github.com" = {
|
|
|
|
hostname = "github.com";
|
|
|
|
identityFile = "~/.ssh/shared_rsa";
|
|
|
|
user = "git";
|
|
|
|
};
|
|
|
|
|
|
|
|
"gitlab.com" = {
|
|
|
|
hostname = "gitlab.com";
|
|
|
|
identityFile = "~/.ssh/shared_rsa";
|
|
|
|
user = "git";
|
|
|
|
};
|
|
|
|
|
|
|
|
"git.sr.ht" = {
|
|
|
|
hostname = "git.sr.ht";
|
|
|
|
identityFile = "~/.ssh/shared_rsa";
|
|
|
|
user = "git";
|
|
|
|
};
|
|
|
|
|
2021-02-24 11:31:31 +01:00
|
|
|
"gitea.belanyi.fr" = {
|
|
|
|
hostname = "gitea.belanyi.fr";
|
|
|
|
identityFile = "~/.ssh/shared_rsa";
|
|
|
|
user = "git";
|
|
|
|
};
|
|
|
|
|
2021-02-20 16:25:55 +01:00
|
|
|
porthos = {
|
|
|
|
hostname = "91.121.177.163";
|
|
|
|
identityFile = "~/.ssh/shared_rsa";
|
|
|
|
user = "ambroisie";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
extraConfig = ''
|
|
|
|
AddKeysToAgent yes
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|