How does depression affect your horniness?

When I get depressed, I normally feel like I’m rubbish. However, I have a humiliation kink so this can cause me to seek out that kind of sex. I end up getting so degraded that it brings me out of my depression. But it occurs to me that it’s not entirely healthy. And to some extent I’m training myself to get depressed because that’s when I have my “best” sex