You need to sense the current by some means, ( copy the part of NMOS current by current mirror, or add the resistor sense at the source of NMOS) . This current then you can convert to voltage and using feed back path to control the gate voltage of NMOS.