Razzberry gpio over ethernet

Would it be possible to run razzberry (gpio) and HA on 2 diffrent pi’s one is running hassbian and the other one osmc and have the razzberry module installed.
So how do I tell hassbian where the razzberry module is located? Is this even possible? Or should I just buy a usb stick and run usb over ip?