Well it is true that that both acatia nilotica and peganum harmal were both available to the ancients... so why not !
On the other hand, the existence of a source does not imply that this source was used since the old times. Look at the DMT en 5MEODMT containing phramites or phalaris.
But it is not sure that the egyptian tree of life was an acacia o_O
There are good reasons think to the tree associated to the NE Great Goddesses (Hathor, or Ishtar, or Asherah, ...) : the Tree of Life, is a sycamore (Ficus sycomorus).
Of course this does not mean that acacia is not represented too.
Note that in corresponding greek lore the tree is and oak, the winged oak of Persephone. So here too, no DMT involved.
So while it is entirely possible, theorically, that DMT acacias were used in NE aniquity, the mythological pointers to such a practices are not so good.