Vajrayana is highly influenced not only by Shaivic tantra in Northern India but also the Greek and Zoroastrian practices of modern Afghanistan/Pakistan/Tajikistan. Lama Glenn Mullin has stated that the Nyingma school was brought in from primarily Persian texts that were translated into Tibetan. Bonpo's later iteration seems to have come from Tajikistan nearby. We also see proto-Vajrayana preserved in the Shingon school of Japanese Buddhism. Manichaeism seems to have been an influence as well with many calling Mani the Buddha of Light.
Daoist and Tibetan systems are rather different. They may have both been influenced by Shaivic Tantra but yeah... Get better sources, don't mix, commit to one system, do the work.