Verified: the base on my D2 will rotate 360 degrees if so desired. I loosened the lugs, rotated it 180 to overhang the edge of the desk and re-tightened. Lots of weight was placed on the baseboard to keep her steady. Maximum enlarger height reached with a 27" tall table (lens to floor) was 58 inches.
4x5 negative w/ 190mm lens = 24" x 31"
6x6 negative w/ 135 mm lens = 22" x 22"
35mm negative w/ 75mm lens = 19" x" 28"
35mm negative w/ 50mm lens = 28" x 40"
I had the same issue with my darkroom which is space limited; 4 feet by 7 feet. I had exposed wall studs inside the darkroom, so I cut a 2x12x55 board and mounted that between the wall studs using a very accurate level. The top of the board is 18 inches above the table, and that allows a maximum size of about 20x24 although the intent was to do 16x20 prints with some cropping. I mounted an old Lentar 6x6 and a Beseler 67 dichro head on there, and that was back about 25 years ago. Sad to say the darkroom hasn't seen much use over the last several years, but that is going to change as I get back into alternative process work.