One of the recurring hassles of kidney trouble and the BigD is jiggly or restless legs.
No one knows what causes restless legs. It could be in your DNA (susceptibility to restless legs can be identified as a marker when you get your genome read). It could be caused by whatever medical problem you have (like kidney failure). It may just arrive with middle age (like ear and nostril hair, and just as welcome).
Whatever way, when they come, you’ll know it: they get a mind of their own and can’t sit still (and not in a nice, dancin’ sort of way either). For me, it’s like they are out of sync with the rest of my body. I’m sitting or lying down, ready to doze or sleep, but my legs are electric, jiggling every few seconds, ready to take me on a brisk trot around the block, and no is not an option.
I first had them years ago. I tried a lots of ways to get rid of them, from a zero coffee and alcohol diet (which I think helped) to strong medication, which just masked the problem (by turning me into a drowsy zombie; I got to sleep, but I seemed to stay that way, even when I wanted to be awake). I found that only one thing answered: exercise. I started walking then jogging, and they slowly disappeared. I add a little stretching before bed when I remember, and it’s off to sleep (eventually).
So, that’s my experience. But there are a lot of others places you can go for advice (including your doctor). There is even a worldwide body dedicated to finding a cure.
My advice, like all the other challenges of the BigD is to keep experimenting. Try massage, vary your diet, take a walk before you go to bed. We are all different, and I’m sure there is an answer for each of us. You just need to find it.