Your problem can't be solved with a resistor, so there is no way to calculate the resistor.
Slow charging of NiMH is possible with CC-CV, and if the panel is small enough that takes care of CC, so the problem will require a thing called voltage regulator. Pass or shunt type are both applicable.
At very low charging currents, the self-shunting of NiMH might be an acceptable compromise, i.e., there is no voltage limit, and the cell itself converts excess charge into heat without being damaged too much, too quickly. This is called "trickle charge". In such case, a series resistor limiting the maximum current could indeed work. For this, you need to calculate R = U/I where U = V_solar_cell_open_circuit - V_NiMH_max_charge, and I = max specified trickle charge current for the NiMH.