From 67d72d17903d3206af0037f91b9fe9a11a087bba Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Mon, 21 Aug 2023 17:25:41 -0600 Subject: [PATCH] [NixOS] Add known hosts for github and gitlab --- nixos/ssh.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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"; + }; + }; + }; }