Skip to content

Commit 44bd5d9

Browse files
committed
macs: install infra-core ssh keys for root user
1 parent 28239c2 commit 44bd5d9

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

macs/common.nix

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,10 @@ in
5959
};
6060
};
6161

62-
environment.etc."per-user/root/ssh/authorized_keys".text = lib.concatStringsSep "\n" [
62+
users.users.root.openssh.authorizedKeys.keys = [
6363
(authorizedNixStoreKey sshKeys.hydra-queue-runner)
64-
];
64+
]
65+
++ (import ../ssh-keys.nix).infra-core;
6566

6667
system.activationScripts.postActivation.text = ''
6768
printf "configuring ssh keys for hydra on the root account... "

0 commit comments

Comments
 (0)