While we are talking William Hope Hodgson, check out his story 'The Night Land', that's about an earth plunged into an eternal night, where humanity survives in the Last Redoubt, surrounded by unspeakable horrors. This is the fiction that inspired H. P. Lovecraft.
Hexatona t1_j5w50jo wrote
Reply to comment by CthulhusMistress in TIL that perhaps the first story about people being taken over by fungus ala "The Last of Us" was William Hope Hodgson's "The Voice in the Night". It later served as the inspiration for the Japanese horror film, "Matango". by ContinuumGuy
If you love it as much as I do, I highly highly HIGHLY recommend reading this, the unofficial sequel to The Night Land.
https://www.goodreads.com/book/show/21911510-awake-in-the-night-land
100% catches the feel of the original in these four stories.