Deductions & credits

That's right.  You need income from working.  

See IRS Pub 590-A IRA Contributions

https://www.irs.gov/pub/irs-pdf/p590a.pdf