2023-01-06 10:37:50 +01:00
|
|
|
{ config, ... }:
|
|
|
|
{
|
|
|
|
programs.ssh = {
|
|
|
|
enable = true;
|
|
|
|
matchBlocks = {
|
|
|
|
"github.com" = {
|
|
|
|
identityFile = "~/.ssh/git";
|
|
|
|
};
|
|
|
|
"rfive.de" = {
|
|
|
|
user = "fedora";
|
|
|
|
};
|
2023-01-23 19:15:45 +01:00
|
|
|
"nuc" = {
|
|
|
|
hostname = "192.168.10.2";
|
|
|
|
user = "root";
|
|
|
|
};
|
2023-01-06 10:37:50 +01:00
|
|
|
"git@rfive.de" = {
|
|
|
|
match = "Host rfive.de User git";
|
|
|
|
identityFile = "~/.ssh/git";
|
|
|
|
};
|
|
|
|
"git@raspi" = {
|
|
|
|
match = "Host raspi User git";
|
|
|
|
identityFile = "~/.ssh/git";
|
|
|
|
};
|
2023-01-14 22:55:06 +01:00
|
|
|
"*" = {
|
|
|
|
identityFile = "~/.ssh/id_ed25519";
|
|
|
|
};
|
2023-01-06 10:37:50 +01:00
|
|
|
};
|
2023-01-14 22:55:06 +01:00
|
|
|
extraConfig = ''
|
|
|
|
IdentityFile ~/.ssh/id_ed25519
|
|
|
|
'';
|
2023-01-06 10:37:50 +01:00
|
|
|
};
|
|
|
|
}
|