IPFS wont run via Tor, DHT is UDP based and Tor doesn't support UDP by design. Did my research last weekend, anybody more knowledgable, please correct me if I am wrong.
Possibly it should run fine via I2P or Yggdrasil.
The first result was a guide on how to do it.
(edit:typo)