When it's things like warp drive and DIL crystals, you can kinda accept it, because it's far-future tech, so essentially magic anyway. You have no basis for understanding the concepts the system works on, so can't really nitpick anything but for consistency. When it's about everyday concepts that we understand very well, you can't ask for the same suspension of disbelief. We KNOW how electricity works, so pretty easy to poke all kinds of holes in this dumb nanite scheme.
I don't know what Star Trek you were watching but the one I was [especially Next Gen] was notorious for giving one outrageous techno-babble explination after another for everything.
I wish people would simply admit they don't like the show because the plot is weak rather than nitpick the techno-babble explinations in this show for the lights going off but likely giving Trek a pass on the same thing.