Modular soft x-ray spectrometer for applications in energy sciences and quantum materials.