nix-config/modules/home-manager/development/ssh.nix
Jo fbba93c16a [general] add gnome config, de-clutter puzzlevision system config
Signed-off-by: Jo <johannesreckers2006@gmail.com>
2024-05-29 00:15:32 +02:00

40 lines
666 B
Nix

{
pkgs,
config,
...
}: let
sshDir = "${config.home.homeDirectory}/.ssh";
in {
home.packages = with pkgs; [
openssh
];
programs.ssh = {
enable = true;
extraConfig = ''
AddKeysToAgent yes
'';
matchBlocks = {
"github.com" = {
identityFile = "${sshDir}/id_ed25519";
identitiesOnly = true;
user = "git";
};
"gitlab.com" = {
identityFile = "${sshDir}/id_ed25519";
identitiesOnly = true;
user = "git";
};
"bitbucket.org" = {
identityFile = "${sshDir}/id_ed25519";
identitiesOnly = true;
user = "git";
};
};
};
}