{ config, pkgs, ... }: { users.users.nixos = { isNormalUser = true; extraGroups = [ "wheel" ]; }; security.sudo.wheelNeedsPassword = true; services.openssh = { enable = true; settings = { AllowUsers = ["nixos"]; PasswordAuthentication = true; PermitRootLogin = "no"; }; }; }