In my experience, the best and easiest way is, having the performers hear the electronics in their headphones only and record them dry, without the electronics bleeding into the mics.
No need to take a line signal from the electronics, if it is a pre-produced track. Just import it into your DAW. If you have to record the electronics, because it makes syncing easier, then you should replace this recording with the original track afterwards.
If it is crucial for the performers to hear the electronics in the room with speakers, because of some kind of acoustic phenomenon, that needs the direct interaction between acoustic and electronic sounds (Alvin Lucier, Clarence Barlow,... sine waves, beatings), then you have to record it like it would be performed in a concert situation. But then, it might be better, to get out of the small studio.
Too dry for me personally is not a problem from a recording perspective, since ambience and reverberation can always be added, but not easily removed. Too dry can be a problem for the performers, if they are used to a different room and cause overplaying and problems with intonation and musical interaction.