From ec30191464820366641f6c4a9e1814e95a5396cf Mon Sep 17 00:00:00 2001 From: ooks-io Date: Sun, 16 Jun 2024 18:56:16 +1200 Subject: [PATCH] feat(nixos:ssh): add git{hub,lab} ssh pub keys --- nixos/modules/base/networking/ssh.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/nixos/modules/base/networking/ssh.nix b/nixos/modules/base/networking/ssh.nix index 7fb4393..d0a0136 100644 --- a/nixos/modules/base/networking/ssh.nix +++ b/nixos/modules/base/networking/ssh.nix @@ -2,8 +2,6 @@ let inherit (lib) mkIf mkDefault; - key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBn3ff3HaZHIyH4K13k8Mwqu/o7jIABJ8rANK+r2PfJk"; - phoneKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINredx07UAk2l1wUPujYnmJci1+XEmcUuSX0DIYg6Vzz"; host = config.ooknet.host; in @@ -27,7 +25,14 @@ in programs = { ssh = { knownHosts = { - "192.168.1.36".publicKey = phoneKey; + github = { + hostNames = ["github.com"]; + publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl"; + }; + gitlab = { + hostNames = ["gitlab.com"]; + publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAfuCHKVTjquxvt6CM6tdG4SLp1Btn/nOeHHE5UOzRdf"; + }; }; }; gnupg.agent = {