add authorizedKeys option to ssh service

this has no apparent use as it stands, but opens the door to
having the keys managed by an external secrets service
This commit is contained in:
Daniel Barlow
2024-08-23 20:35:07 +01:00
parent e835473945
commit 869a508c0a
3 changed files with 35 additions and 4 deletions

View File

@@ -184,7 +184,11 @@ in rec {
dependencies = [ config.services.hostname ];
};
services.sshd = svc.ssh.build { };
services.sshd = svc.ssh.build {
authorizedKeys = {
root = rsecrets.root.openssh.authorizedKeys.keys;
};
};
services.lns-address = let
ns = "$(output_word ${services.bootstrap-dhcpc} dns 1)";