Retirement tax questions

Taxable alimony is not "earned income", but it is "compensation" for purposes of contributing to an IRA.