Add default environment variables for wayland

This commit is contained in:
ItsDrike 2024-06-28 17:28:48 +02:00
parent 61ada8f1cf
commit c4a14d4543
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
2 changed files with 23 additions and 0 deletions

View file

@ -4,5 +4,6 @@
./xdg-portals.nix ./xdg-portals.nix
./xwayland.nix ./xwayland.nix
./services.nix ./services.nix
./environment.nix
]; ];
} }

View file

@ -0,0 +1,22 @@
{
config,
lib,
...
}: let
inherit (lib) mkIf;
cfgEnabled = config.myOptions.home-manager.wms.isWayland;
in {
config = mkIf cfgEnabled {
environment.sessionVariables = {
_JAVA_AWT_WM_NONEREPARENTING = "1";
NIXOS_OZONE_WL = "1";
GDK_BACKEND = "wayland,x11";
ANKI_WAYLAND = "1";
MOZ_ENABLE_WAYLAND = "1";
XDG_SESSION_TYPE = "wayland";
SDL_VIDEODRIVER = "wayland";
CLUTTER_BACKEND = "wayland";
};
};
}