After my most recent NixOS update, I noticed that Firefox keeps crashing almost immediately after browsing any website. It seems to be this Firefox Wayland bug as described here: https://bugzilla.mozilla.org/show_bug.cgi?id=1898476
The workaround of disabling Wayland by launching with MOZ_ENABLE_WAYLAND=0
seems to make FIrefox stable again. I’d like to add this environment variable to my Firefox configuration, as currently I have just been testing by launching Firefox from a CLI. However, Firefox already has a fairly complex wrapper around it, and I don’t understand how to add an extra environment variable to the wrapper without reimplementing the entire wrapper.
Could anyone provide me some pointers on how to achieve this workaround? Do I do a pkg override? Another wrapper?