Oh, AerynLee is correct.
For residential rental property, you cannot take section 179. It would work for rental of qualified restaurant or retail, but not just a residential rental.
You would depreciate over the useful life for improvements, and you would expense most repairs right away. The useful life of a building is 27.5 years. The doors and HVAC would be different.