how to use a second power source to automatically switch on another
This is usually done with a relay.

The relay coil is fed by the ignition switch and the contacts by a supply, with a suitably sized fuse, directly from the battery.