Great minds think alike . . . although from opposite directions.
I've been mulling over similar ideas for a campaign recently myself. Merging Star Trek with D&D, with shades of Spelljammer, DragonStar, and Star Wars mixed in. A future D&D universe, replacing the Star Trek aliens with the D&D races and including magic in the mix. In a sense, a chance to "fix" some issues I have with Star Trek, or just explain away some of the more fantastical elements into being, well, fantastical!
Transporters aren't based on science, but magical teleportation. Medical and communication tech could also actually be magical. Command division is red, Science division is blue, Security is gold . . . Magic division is, green? Should there be separate Arcane, Divine, Primal, and Psionic divisions?