As suggested at https://discourse.nixos.org/t/firefox-all-black-when-first-launched-after-login/21143/7.