how does a happy person live with a negative person?

there are different options:

you dont

you find out why they are unhappy and make them happy by fxing that issue

dont live together but still be together

talk and ask him

try to cheer him up etc.