Please check with a tax professional first.
IMO the key point is earned income which also include alimony but it does not include pension and soc. sec. so the answer is no. if you do not work and get a w-2 wages or salary you cannot do it.
Hope this helps.