Mains. In fact, I installed a central vacuum system. Motor and dust bin are in the garage and I just connect a hose to an outlet in the wall. There's like 3 outlets in strategic locations so I can reach the whole house with a 30' hose.
Carpet or hard floor (wood, tile, vinyl)?