Indeed, the friendliest way to position/orient a display is as far away as you can comfortably put it to see all the small details you need to see (the further it is, the less the muscles in your eyes have to work to converge/focus), with the top of the display at or slightly below eye level (eyes are designed for looking downward for close work, and both converge and focus closer comfortably when looking at the lower part of the field of view), and the display tilted back a bit (15°?) at the top. Many “ergonomics guides” (and anecdotally from walking around various tech company offices, the vast majority of programmer workstations, in practice) get this one very wrong, recommending a display with eye level somewhere around the middle of the display, and the display oriented perpendicular to the table. Try to glance around the room at further objects relatively frequently, and occasionally stand up to walk around and take a break from close work.
Make sure to also sit up straight, not hunched or slouched, with the keyboard near the torso (the close side maybe half a foot from the belly), and upper arms hanging loosely at the sides. The palms/forearms should be free floating, not resting on any surface. At all costs keep the wrists as straight as possible. Typing should be light and springy.
Adjust the tilt of the keyboard so that its surface is approximately parallel with the forearms. A split keyboard which is tented even a little bit upward toward the middle and turned a bit so that the far side points inward relieves quite a bit of strain by reducing wrist pronation, but is not strictly necessary.
Unfortunately there hasn’t really been very much large-scale, carefully scoped and controlled, properly conducted/analyzed, anatomically motivated study of keyboard ergonomics. That is, there have been a large number of research studies but almost all of them were garbage for one reason or another. As a result many of the most important conclusions about proper typing style can best be discovered by reading directly about anatomy, investigating proper technique for other tools, and doing careful personal experimentation/analysis. Reading keyboard-specific ergonomics literature does not necessarily lead to healthy recommendations or physical keyboard designs.