aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2026-01-26 09:30:31 -0800
committerFranck Cuny <franck@fcuny.net>2026-01-26 09:30:31 -0800
commit2b1866f4d4f83c724bae04e79a9b228bcece47ba (patch)
treea4c4d5179a1ab2005ea5c7af6ef6119a332dca66
parentpersist postgresql's data dir (diff)
downloadinfra-2b1866f4d4f83c724bae04e79a9b228bcece47ba.tar.gz
add framebox to the ssh know host list
-rw-r--r--flake.nix1
-rw-r--r--modules/ssh.nix4
2 files changed, 4 insertions, 1 deletions
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;
};
}