Until six weeks I slept in my recliner, on my back. At six weeks I went back to sleeping in my bed.
In bed, I sleep on my side, usually the non-surgical side. I keep the leg on the bottom fairly straight, and bend the surgical leg (the one on top) at the knee. At first, I laid my surgical leg, bent, on a pillow, but found it more comfortable without the pillow for some reason.
Sometimes, probably 1/4 of the time, I sleep on the other side, my surgical side with my surgical leg fairly straight and my non-surgical leg bent.
That gets me to sleep, and then after I fall asleep I flop around into different positions anyway so all in all, it doesn't matter what position I start out in.
I did not have leg cramps but everything else in the world kept me from sleeping after I quit taking opiates, until I finally started taking acetaminophen an hour before bedtime.
Congratulations on walking so far!! That's huge!!!

Don't worry about what your friends say about getting out of the house. They probably just want the best for you but it is hard for someone else to understand what you are going through.