add a new wayland environment var

This commit is contained in:
Reid 2024-04-15 18:44:42 -07:00
parent 3aadb5d551
commit 49f59d69e9

View file

@ -24,11 +24,12 @@ in {
}
(mkIf (cfg.envProto == "wayland") {
environment.sessionVariables = {
# magic, dont ask
# magic environment variables that improve wayland compat
NIXOS_OZONE_WL = "1";
_JAVA_AWT_WM_NONEREPARENTING = "1";
GDK_BACKEND = "wayland,x11";
ANKI_WAYLAND = "1";
ELECTRON_OZONE_PLATFORM_HINT = "wayland";
XDG_SESSION_TYPE = "wayland";
SDL_VIDEODRIVER = "wayland";
CLUTTER_BACKEND = "wayland";