puzzlevision/modules/home/development/ssh/default.nix
Jo fde4abd59d refactor(module): clean up some module inputs
feat(module): add use-lix option to nix module

feat(module): update fish config for catppuccin
2024-09-10 10:46:16 +02:00

41 lines
694 B
Nix

{
lib,
pkgs,
inputs,
namespace,
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";
};
};
};
}