6year rule is completely separate in this case, is it not?
Even if it was an IP first, then you lived in it as PPOR, and then moved overseas etc, you can still claim it as your PPOR for up to 6 years. You just have to pay CGT on the portion it was an IP, rather than the whole lot being...