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 committed 2024-08-23 20:35:07 +01:00
1 parent e835473945
commit 869a508c0a
3 files changed
+35 -4

No files matched your search

+5 -1
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)";