Deductions & credits

If it's just free money, then it is taxable.

 

You can also add the entire cost of your roof to the cost basis of your home.  This may reduce your capital gains whenever you sell in the future.