You can definitely do dirt... but it's very very messy. There are many easier substrates that are designed for plants, like ecocomplete. Jungle val does not require dirt, it will do just fine in a plant substrate.
Switching to dirt will be a huge project- I would set aside an entire day. You will need to completely empty the tank (hopefully you have another tank to put the fish in for a day or two). I would recommend using organic miracle grow potting soil- you don't want any added fertilizers and I would definitely not use compost. You don't want anything that is not finished decomposing. You will need a cap on top of the dirt to hold it down, usually people use sand.
When you start a dirted tank keep in mind that it will be extremely messy at first, and it's best to never move anything once you plant it, because pulling plants out of the soil creates a mess.
Personally, I would just use a substrate designed for plants, but if you're really set on a dirted tank I would recommend doing a lot more research before getting started.
Dustin's planted tanks is a good resource. He has a YouTube channel, and books on how to start a dirted tank.