The payments are taxable wages to you; effectively, you are an employee of your state.
On a sale of a principal residence, you may avoid tax under the rules.