Depression and Sex

I was recently diagnosed with clinical depression, and I haven't been feeling "in the mood." My boyfriend and I have been together for almost two years, and I know my recent emotional turmoil has taken its toll on him. He's been kind, but I can tell he is upset that I don't want to have sex with him. I'm wondering if my disinterest in sex is something I can control or if there's a bigger issue I'm not seeing. What should I do?