I had a herniorrhaphy 11 days ago and am supposed to stay off for 6 weeks also. Before the surgery I really just let myself go and ate tons of junk food mainly due to stress, severe pain, and well, honestly, fear and ended up gaining a few. I justify it by knowing I'll work it all off pretty quickly as soon as I'm myself again.
Anyway, post surgery I've been eating healthy which is important for the healing process and basically just laying on my backside watching movies until I go back to work (took two weeks off, really helped alot). Everywhere you read and everyone you ask will suggest walking as much as possible.
Just take it easy and enjoy your time off if you want, a little break every now and then is healthy.