No, you can't deduct repairs done to your primary residence.
Instead of being deducted, the cost of your new roof is added to your cost basis when you sell your home, thus reducing your capital gain at that time.
**Answers are correct to the best of my ability but do not constitute tax or legal advice.