@streamfinder -- These are two separate conditions, which you have unfortunately gotten at the same time.
What you need to do is this -- treat the fungus first. There are tons of nail fungicides on the market, so all you need to do is go to the pharmacy or grocery store and get a nail fungicide liquid. When your toenail is no longer infested, then you can start to worry about the ingrown toenail.
If it's not too serious, a good ingrown toenail home remedy is to simply cut a little "V" in the top of your nail. When the nail grows out, it will pull together to fill the "V" and help get your toenail out of the skin.
If it's more serious, for instance, if your ingrown toenail is swollen or putting out discharge, and you have tried soaking it and cutting it, then I would recommend you to a podiatrist.
They can help you with a more professional ingrown toenail cure, and you won't have to worry about it any more.
Another thing, are you sure it's a toenail fungus and not an ingrown toenail infection? They can sometimes look the same. Either way, if it's serious, or if you just want to get it cleared up as soon as possible, try a few home remedies, then take it to the doctor.
Best of luck.