$AdS_2$ holography and ModMax