You got exactly 180 days. You can just fly out and back in at any point and get 180 days from the day you come back. The DTV is great in that way 🥳👌
You most likely don't have to go to the embassy, you just have to pick the one that's closest to your location (or where Tunisians usually apply) for the e-visa system.