I keep my carry pistol in the nightstand, in my holster, and a tactical flashlight on the nightstand. I like the idea of the magnet though on the back of the night stand, as that would make it quicker to get to, and it would be hidden between the wall and the night stand.
To be honest though, I have concerns of EVER waking up in that type situation, as my wife has a lifelong habit of having to have white noise to sleep - a box fan, noise machine, etc. Ostensibly it was to cover my snoring, but she had it when I met her, and with my CPAP I don't snore anymore. I've gotten used to it, but enjoy the quiet on the rare times she is out of town with her mother. It worries me more about hearing an intruder, a storm, a tornado, whatever. I'm hopeful that the Ring cameras around the house will set off the alert on my phone, or the weather radio on my nightstand will go off. Or the dogs will let me know something is going on.