Enable bertof keys for remote deploy

This commit is contained in:
Filippo Berto 2022-12-19 23:28:19 +01:00
parent e5675984bb
commit e946eb7b81
Signed by: bertof
GPG key ID: 9DBF7E6A1D2CE9ED

View file

@ -1,4 +1,4 @@
{
{ config, ... }: {
services.openssh = {
enable = true;
openFirewall = true;
@ -7,4 +7,6 @@
passwordAuthentication = false;
kbdInteractiveAuthentication = false;
};
users.users.root.openssh.authorizedKeys.keys = config.users.users.bertof.openssh.authorizedKeys.keys or [ ];
}