nixdots/system/roles/workstation/display/wayland/environment.nix

23 lines
469 B
Nix
Raw Normal View History

{
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";
};
};
}