From 2b1866f4d4f83c724bae04e79a9b228bcece47ba Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 26 Jan 2026 09:30:31 -0800 Subject: add framebox to the ssh know host list --- flake.nix | 1 + modules/ssh.nix | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index e986e79..0e10b43 100644 --- a/flake.nix +++ b/flake.nix @@ -204,6 +204,7 @@ hostName = name; adminUser = machineAdminUser; inherit self inputs; + hostConfigurations = nixpkgs.lib.mapAttrs (_: conf: conf.config) nixosConfigurations; }; modules = [ { adminUser = machineAdminUser; } diff --git a/modules/ssh.nix b/modules/ssh.nix index 3e975ee..7097aaa 100644 --- a/modules/ssh.nix +++ b/modules/ssh.nix @@ -1,7 +1,9 @@ -{ ... }: +{ hostConfigurations, ... }: { programs.ssh.knownHosts = { "github.com".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl"; + "builder".publicKey = hostConfigurations.framebox.publicKey; + "framebox".publicKey = hostConfigurations.framebox.publicKey; }; } -- cgit v1.2.3