My cat is also squirmy and an expert at avoiding me... A couple of times I managed to cut her nails when she was sleeping but she caught onto that and started sleeping with her paws underneath her. Also I have never been able to get her in a towel because she figures out what's going on and takes off before I can get a good grip. They're smart!!!
I don't know how big your cat is, but this finally worked for me and my 7 pound cat. I wait until she is calm and resting somewhere and get behind her holding her between my knees, so she's facing forward. If you cross your ankles behind you she can't get away. Then I cut her nails as quickly as I can without hurting her of course. She is not thrilled but she usually stays still for a minute or so. Sometimes it takes a couple of sessions a few days apart to cut them all. But it's worth it to avoid a lot of scratching damage. Oh and I keep treats in my pocket which I give her immediately after. Good luck.