add a new wayland environment var
This commit is contained in:
parent
3aadb5d551
commit
49f59d69e9
1 changed files with 2 additions and 1 deletions
|
@ -24,11 +24,12 @@ in {
|
||||||
}
|
}
|
||||||
(mkIf (cfg.envProto == "wayland") {
|
(mkIf (cfg.envProto == "wayland") {
|
||||||
environment.sessionVariables = {
|
environment.sessionVariables = {
|
||||||
# magic, dont ask
|
# magic environment variables that improve wayland compat
|
||||||
NIXOS_OZONE_WL = "1";
|
NIXOS_OZONE_WL = "1";
|
||||||
_JAVA_AWT_WM_NONEREPARENTING = "1";
|
_JAVA_AWT_WM_NONEREPARENTING = "1";
|
||||||
GDK_BACKEND = "wayland,x11";
|
GDK_BACKEND = "wayland,x11";
|
||||||
ANKI_WAYLAND = "1";
|
ANKI_WAYLAND = "1";
|
||||||
|
ELECTRON_OZONE_PLATFORM_HINT = "wayland";
|
||||||
XDG_SESSION_TYPE = "wayland";
|
XDG_SESSION_TYPE = "wayland";
|
||||||
SDL_VIDEODRIVER = "wayland";
|
SDL_VIDEODRIVER = "wayland";
|
||||||
CLUTTER_BACKEND = "wayland";
|
CLUTTER_BACKEND = "wayland";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue