its very easy to set it up even in a dedicated shop base. there’s 2 options.
Option 1: If vending machine needs less than 10 energy, place solar panel, connect to small battery, connect battery to vending machine.
Option 2: If vending machine needs less than 20 energy, just hook it up to a solar panel. The shop will then only work during day.
But to be honest i dont thing a vending machine would ever require more than 5 energy so option 1 would be fine.