nixos-config/users/rouven/modules/ssh/default.nix
2023-02-02 12:31:38 +01:00

34 lines
693 B
Nix

{ config, ... }:
{
programs.ssh = {
enable = true;
matchBlocks = {
"github.com" = {
identityFile = "~/.ssh/git";
};
"rfive.de" = {
user = "debian";
};
"nuc" = {
hostname = "192.168.10.2";
user = "root";
};
"git@rfive.de" = {
match = "Host rfive.de User git";
identityFile = "~/.ssh/git";
};
"git@raspi" = {
match = "Host raspi User git";
identityFile = "~/.ssh/git";
};
"git@ifsr.de" = {
match = "Host raspi User git";
identityFile = "~/.ssh/git";
};
};
extraConfig = ''
IdentityFile ~/.ssh/id_ed25519
'';
};
}