{ config, pkgs, lib, ... }: { # Define a user account. Don't forget to set a password with 'passwd'. users = { users.root = { hashedPassword = "$y$j9T$YtRkFL3JLAB/zfyr89aFp.$of1IUt84c2i26l6GQWHO2qX0dNiPDZgVGpaNPVyAs24"; }; }; services.openssh.settings.PasswordAuthentication = false; }