{ lib, ... }: let inherit (lib.options) mkEnableOption; in { options.modules.programs.ssh.enable = mkEnableOption "ssh"; config = { services.openssh = { enable = true; ports = [ 22 ]; settings = { PasswordAuthentication = false; PermitRootLogin = "no"; }; }; }; }