quick fix as dropbear was deprecated and now we need to pregenerate keys

This commit is contained in:
Lyn 2024-10-16 17:33:54 +02:00
parent f2fbebe6cb
commit 5893ada5a2

View file

@ -24,7 +24,7 @@
ssh = { ssh = {
enable = true; enable = true;
port = 2222; port = 2222;
hostECDSAKey = /var/src/secrets/dropbear/ecdsa-hostkey; hostKeys = /boot/initrd/ssh_host_rsa_key;
# this includes the ssh keys of all users in the wheel group, but you can just specify some keys manually # this includes the ssh keys of all users in the wheel group, but you can just specify some keys manually
# authorizedKeys = [ "ssh-rsa ..." ]; # authorizedKeys = [ "ssh-rsa ..." ];
authorizedKeys = with lib; concatLists (mapAttrsToList (name: user: if elem "wheel" user.extraGroups then user.openssh.authorizedKeys.keys else []) config.users.users); authorizedKeys = with lib; concatLists (mapAttrsToList (name: user: if elem "wheel" user.extraGroups then user.openssh.authorizedKeys.keys else []) config.users.users);