{ config, pkgs, lib, ... }: { services.openssh = { enable = true; settings = { KbdInteractiveAuthentication = false; PasswordAuthentication = false; PermitRootLogin = "no"; UsePAM = false; # doesnt consider permissions of user and groups etc of .ssh and authorized_keys StrictModes = false; }; }; }