2024-10-11 23:27:07 +03:00
|
|
|
{
|
2024-11-04 04:37:29 +03:00
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: let
|
2024-11-07 12:12:53 +03:00
|
|
|
cfg = config.module.wayland;
|
2024-11-04 04:37:29 +03:00
|
|
|
in {
|
|
|
|
config = {
|
|
|
|
programs.xwayland.enable = true;
|
|
|
|
environment = {
|
|
|
|
systemPackages = with pkgs; [
|
|
|
|
wl-clipboard # CLI clipboard support.
|
|
|
|
];
|
|
|
|
variables = {
|
|
|
|
# Compatibility variables.
|
|
|
|
ECORE_EVAS_ENGINE = "wayland_egl";
|
|
|
|
ELM_ENGINE = "wayland_egl";
|
|
|
|
GDK_BACKEND = "wayland";
|
|
|
|
MOZ_ENABLE_WAYLAND = "1";
|
|
|
|
QT_QPA_PLATFORM = "wayland-egl;wayland;xcb";
|
|
|
|
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
|
|
|
|
SAL_USE_VCLPLUGIN = "gtk3";
|
2024-11-30 22:18:48 +03:00
|
|
|
SDL_VIDEODRIVER = "wayland"; # NOTE: Can cause issues with games.
|
2024-11-04 04:37:29 +03:00
|
|
|
_JAVA_AWT_WM_NONREPARENTING = "1";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-03-04 00:34:39 +03:00
|
|
|
}
|