I've done that, it's a really simple job. A couple of wires from the battery, an in-line fuse, and a socket. I did mine as an unswitched (i.e. always on) setup so I could use it to charge the battery. The only downside is that you have to remember not to leave stuff plugged in to it otherwise you'll flatten the battery