From 267c22859802aa63e46f76bc3b1f801d279a270d Mon Sep 17 00:00:00 2001 From: Kalle Struik Date: Fri, 22 Nov 2024 20:07:19 +0100 Subject: [PATCH] Persist ssh host keys --- systems/base/configuration.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/systems/base/configuration.nix b/systems/base/configuration.nix index 92c5aa5..dc1fdff 100644 --- a/systems/base/configuration.nix +++ b/systems/base/configuration.nix @@ -79,6 +79,10 @@ ]; files = [ "/etc/machine-id" + { file = "/etc/ssh/ssh_host_ed25519_key"; mode = "0600"; } + { file = "/etc/ssh/ssh_host_ed25519_key.pub"; mode = "0644"; } + { file = "/etc/ssh/ssh_host_rsa_key"; mode = "0600"; } + { file = "/etc/ssh/ssh_host_rsa_key.pub"; mode = "0644"; } ]; };