@cryptotaxi247 / infra-1 / commits / 44bd5d93

macs: install infra-core ssh keys for root user

Martin Weinelt committed Jan 4, 2026 at 17:23 UTC 44bd5d93ce2b76bbc13b9a044544119d6378f9bc
1 file changed +3 -2
macs/common.nix
+3 -2
@@ -59,9 +59,10 @@ in
59 };
60 };
61
62 - environment.etc."per-user/root/ssh/authorized_keys".text = lib.concatStringsSep "\n" [
62 + users.users.root.openssh.authorizedKeys.keys = [
63 (authorizedNixStoreKey sshKeys.hydra-queue-runner)
64 - ];
64 + ]
65 + ++ (import ../ssh-keys.nix).infra-core;
66
67 system.activationScripts.postActivation.text = ''
68 printf "configuring ssh keys for hydra on the root account... "