With 179 deduction or special bonus depreciation with loss can you carry forward deduction? How long?

With section 179 deduction or special bonus depreciation can you carry forward deduction if you have a loss? For an s corp Is this carried forward on the personal return of the 1120? Is it generally best to take full deduction in 22 with special bonus deprecation ending I believe 22?