So I did something stupid today and I wanted to tell someone about it and say that "I was annoyed with myself for doing X".
My best guess is something like
Xして、自分にイライラしちゃったの。
and
昨日Xして、自分にイライラしてるの。
But are these really a valid sentences? And if they are, do they mean what I want to say or do they mean something else?
Please could someone explain to me how to say "I was/am angry at myself that I did X yesterday"?