As you can tell from the pain you are experiencing, that is too much sitting. Many surgeons restrict sitting to 15-20 minutes at a session, right after surgery...and then gradually expanding the time. But after spine surgery, you really need to get up and move about every hour or so. Now, I am assuming that you had a lumbar discectomy...if it is higher up, I imagine the rules are different. But, regardless, sitting puts 30% more stress on the discs than any other position. People often develop disc problems from a lifestyle that involves too much sitting.
I realize people do need to work...so try to do what you can to take short breaks, even if it is standing up at your desk and doing some shoulder rolls and maybe a couple stretches to get the blood flowing. Be sure your work area is ergonimically designed and set up, and that you have a great, support, adjustable chair. Some offices are getting work stations that go up and down so a worker can stand part of the day. Try to lie down during your breaks and lunch hour to give the discs an opportunity to unload. In other words, do whatever you can think of within your workplace rules to make the situation work for you. Perhaps you could get a special dispensation for 4 weeks while you continue healing. After my husband ruptured a disc many years ago, he would lie on his office floor when on the phone. Things like this do help.
Use ice for pain...and when you get back home, don't try to maintain a "normal" post-work schedule. Let the housework go. Let the kids ride to activities with someone else....remember, this is all temporary, but you need the help now while you are in this important phase of healing, so don't be afraid to ask for help...and let everything else go. You have to go to work, but you do not have to do the other activities, for now.