Mining towns used to work in the days when one parent worked full-time and one parent raised kids full-time, and job security, unions, and pensions were a thing.
In modern times, both parents often have career ambitions, and the modern capitalist economy and housing pricing has greedily recalibrated to every family needing two incomes. So you're not going to have many families willing to move to the boonies unless you (at the bare minimum) hand out doubly-high salaries.
Very likely that's not enough though, as it's also a massive financial risk to them if you can just lay them off after the next earnings report with no pension to continue supporting them. Most modern families would rather stay where jobs are slightly more likely to exist.