Retirement tax questions

If you're retired with no earned income the solution  I proposed won't work.

You would have no eligible contribution to allocate.

 

I presume you are still working, or at least, were working in 2021.