diff --git a/nixos/ssh.nix b/nixos/ssh.nix index 5321e2ed..0c038074 100644 --- a/nixos/ssh.nix +++ b/nixos/ssh.nix @@ -22,4 +22,17 @@ PasswordAuthentication = false; }; }; + + programs.ssh = { + knownHosts = { + github = { + hostNames = ["github.com"]; + publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl"; + }; + gitlab = { + hostNames = ["gitlab.com"]; + publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAfuCHKVTjquxvt6CM6tdG4SLp1Btn/nOeHHE5UOzRdf"; + }; + }; + }; }