{ users.users.root = { openssh.authorizedKeys.keyFiles = [ # copy your public key here and point to it # ./id_rsa.pub ]; }; # Add the rest of your configuration here }