nmconfig: add callback function which setups up the nmdevice struct