{lib, config, ...}: { options.openssh.enable = lib.mkEnableOption "OpenSSH server"; config = lib.mkIf config.openssh.enable { services.openssh = { enable = true; settings = { PermitRootLogin = "no"; PasswordAuthentication = false; PrintMotd = false; }; extraConfig = '' Match user git AllowTcpForwarding no AllowAgentForwarding no PasswordAuthentication no PermitTTY no X11Forwarding no ''; }; }; }