The duration of the spouse's right of residence is the lifetime of the spouse; provided, however, that if there is a different determination in the agreement on division of the estate or in the will, or if the family court has made a different determination in the adjudication on division of the estate, that determination governs.