Personally, drugs and CBT never helped me with these. They might help you. I mostly just put my head down and kept coding for work and did nothing after work but lay down. I just had no interest in reading or watching TV or anything. If I hadn't had kids to support, I would not have been able to force myself to go to work either.
Eventually time would pass and it would go away and I would remember how much I liked coding and how much I liked all of my hobbies.
It's very hard to imagine ever returning to normal when you're in some sort of depressive episode. But statistically speaking, you almost certainly will. That knowledge always helped me to get through them. These is a good chance that in 6-12 months, you might again be quite excited by new technologies and the thought of going to festivals/bars/clubs.