diff --git a/assets/ssh/pi3bplus.pub b/assets/ssh/pi3bplus.pub new file mode 100644 index 0000000..785fb75 --- /dev/null +++ b/assets/ssh/pi3bplus.pub @@ -0,0 +1 @@ +ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJi1BMzoSM0msvtKwoOzySYuKTpFCAanHYWQjL0tZhDI root@odroid diff --git a/modules/ssh-server.nix b/modules/ssh-server.nix index 87ea7ad..9522412 100644 --- a/modules/ssh-server.nix +++ b/modules/ssh-server.nix @@ -26,5 +26,9 @@ ]; users.users.root.openssh.authorizedKeys.keys = [ (builtins.readFile ../assets/ssh/nitrokey.pub) - ]; + ] ++ ( + if (config.networking.hostName == "yodaNas") + then [(builtins.readFile ../assets/ssh/pi3bplus.pub)] + else [] + ); }