From 65bb60c056d04e3c35bce3274bb8993049ce8cbc Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 26 Jan 2026 19:04:02 -0800 Subject: add more hosts to ssh known hosts --- modules/ssh.nix | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/modules/ssh.nix b/modules/ssh.nix index 793f04c..a1bc5af 100644 --- a/modules/ssh.nix +++ b/modules/ssh.nix @@ -1,13 +1,28 @@ { hostConfigurations, ... }: { programs.ssh.knownHosts = { - "github.com".publicKey = - "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl"; - "builder".publicKey = hostConfigurations.framebox.publicKey; - "framebox".publicKey = hostConfigurations.framebox.publicKey; - "nas".publicKey = - "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJxKNYU62aO7gvdq0TxLduyAGxYn6GvePAGevlRGrX/L"; - "192.168.1.68".publicKey = - "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJxKNYU62aO7gvdq0TxLduyAGxYn6GvePAGevlRGrX/L"; + "github.com" = { + publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl"; + }; + "framebox" = { + hostNames = [ + "framebox" + "192.168.1.114" + "10.100.0.60" + "builder" + ]; + publicKey = hostConfigurations.framebox.publicKey; + }; + "vps" = { + hostNames = [ "fcuny.net" ]; + publicKey = hostConfigurations.argonath.publicKey; + }; + "nas" = { + hostNames = [ + "nas" + "192.168.1.68" + ]; + publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJxKNYU62aO7gvdq0TxLduyAGxYn6GvePAGevlRGrX/L"; + }; }; } -- cgit v1.2.3