Relationship question

I love my husband and we have a great life together.

What is missing and what has been missing from time to time is sex. For me, it is important that you take care of your health by exercising and eating well. He has stopped doing that several years ago. He says he wants to lose weight and eat better, but nothing happens. I know I could change my mind about what I make it mean. I guess his habits mean that I’m not attracted to him right now.

But I do not want to change my mind about exercise, food and health. I want to be with him, but does that mean I have to accept that I will not want to have sex with him?