{ lib, ... }: let ports = lib.lists.singleton 2222; in { services.openssh = { enable = true; startWhenNeeded = true; ports = ports; openFirewall = true; settings = { AllowUsers = [ "tdback" ]; PermitRootLogin = "no"; PasswordAuthentication = false; }; }; }