I knew that part, but it seemed improbable to me that none of the armaments provided to what later became the Taliban weren't at least indirectly provided by the US.
My understanding - which granted is not an expert one and could be rooted in a myth - was that they handed weapons out relatively indiscriminately, to any displaced Afghans in Pakistan presenting as able and willing to fight the Soviets. I always assumed a lot of them ended up in their hands as well.