From b2fd4f1da5f70790c60bc44e14cd4622809669e3 Mon Sep 17 00:00:00 2001 From: Martin Berg Alstad Date: Mon, 19 May 2025 20:23:04 +0200 Subject: [PATCH] :sparkles: [shared] Added all public ssh keys to authorizedKeys --- shared/modules/security/ssh.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/shared/modules/security/ssh.nix b/shared/modules/security/ssh.nix index 98b1847..cbba392 100644 --- a/shared/modules/security/ssh.nix +++ b/shared/modules/security/ssh.nix @@ -1,4 +1,6 @@ # /nix/store//etc/ssh/ssh_config +{ systemConfig, ... }: + { programs.ssh.knownHosts = let @@ -22,4 +24,10 @@ publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIARDv5nRlfPDXdV+Db4FaqeSJZ3/3MO0frYGzuVeqYAl"; }; }; + users.users.${systemConfig.username}.openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMSzXyTuQyTrWsfORQbvgrqt/33+hfSUDXeMg6D1T2wz" + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILNlHKE/BD8kKfhJD7GBk1A3whZf3gTjk9VEgGAj3qsH" + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJE9m7YiITe1sDqSZ7Pa8luIw3WToLsypixZEqE4wCQE" + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIARDv5nRlfPDXdV+Db4FaqeSJZ3/3MO0frYGzuVeqYAl" + ]; }