ssh config

This commit is contained in:
Daniel Langbein 2023-09-27 20:12:19 +02:00
parent 10298f145d
commit 818e023ddd
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002
2 changed files with 6 additions and 1 deletions

1
assets/ssh/pi3bplus.pub Normal file
View File

@ -0,0 +1 @@
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJi1BMzoSM0msvtKwoOzySYuKTpFCAanHYWQjL0tZhDI root@odroid

View File

@ -26,5 +26,9 @@
]; ];
users.users.root.openssh.authorizedKeys.keys = [ users.users.root.openssh.authorizedKeys.keys = [
(builtins.readFile ../assets/ssh/nitrokey.pub) (builtins.readFile ../assets/ssh/nitrokey.pub)
]; ] ++ (
if (config.networking.hostName == "yodaNas")
then [(builtins.readFile ../assets/ssh/pi3bplus.pub)]
else []
);
} }