You might consider adding some new things to do with your time so that the coding is not such a total aspect of your life.
I suffered chronic depression for decades, and the thing that no one ever told me is that there is no One Thing.
The exercise didn't fix it. The therapy didn't fix it. The meditation didn't fix it. The hobbies didn't fix it. It was Everything. When I'm not happy with my art, I do more exercise. When I'm not happy with my exercise, I do more meditation, etc. More social interactions, stronger networks, deeper support group. Eating better. Less social media. Less infotainment. More water. Everything. All the things.
A multitude of small changes has accumulated to a state in which I am now bothered by very little and can easily shrug off a wide variety of things that would previously have shut me down for hours or days.
After getting to know the thing beyond first impressions, you'll learn whether or not it actually turns your gears. If it doesn't, drop it and pick something else. Eventually, you will luck into something that excites you -- and it very well may be something that you never would have thought would excite you.
It's got the same kind of "how do I make what is currently nothing much in to something useful and or beautiful" problem solving, so it tickles the same kind of neurons, I suppose.