Files
nixos-dotfiles/modules/ssh/default.nix
2025-07-22 02:30:15 +02:00

30 lines
694 B
Nix

{
...
}:
{
programs.ssh.extraConfig = ''
StrictHostKeyChecking no
UserKnownHostsFile=/dev/null
Match User beastie
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_ed25519_beastie
Match User nixos
PreferredAuthentications publickey,password
IdentityFile ~/.ssh/id_ed25519_beastie
Match User ansible
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_ecdsa_ansible
Match User gitea Host git.unixyourbrain.org
PreferredAuthentications publickey,password
IdentityFile ~/.ssh/id_ed25519_beastie
Host S-TIC-01
KexAlgorithms=+diffie-hellman-group1-sha1
HostKeyAlgorithms=+ssh-rsa
'';
}