While I am very pro-containers as a deployment target I am also very resistant to containers in the critical feedback loop of local dev, chiefly due to iteration speed and performance/battery overhead, which was much more glaring when the Intel chips were all we had.
I can't endorse Nix in any capacity these days but it did seek to address multi platform environmental consistency, without containerization as your LCD.