The requirement for a Roth IRA contribution is "compensation," not earned income. According to IRS Publication 590-A, taxable alimony from a pre-2019 divorce decree is considered compensation for the purpose of IRA contributions, including Roth IRA contributions.