2024-06-25 04:04:39 +03:00
|
|
|
{ pkgs, lib, config, ... }: with lib; let
|
|
|
|
cfg = config.module.desktop.wayland;
|
|
|
|
in {
|
|
|
|
options = {
|
|
|
|
module.desktop.wayland.enable = mkEnableOption "Wayland.";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = {
|
|
|
|
environment = {
|
|
|
|
systemPackages = with pkgs; [
|
|
|
|
wl-clipboard # CLI clipboard support.
|
|
|
|
];
|
2024-05-21 00:58:49 +03:00
|
|
|
|
2024-06-25 04:04:39 +03:00
|
|
|
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";
|
|
|
|
SDL_VIDEODRIVER = "wayland";
|
|
|
|
_JAVA_AWT_WM_NONREPARENTING = "1";
|
|
|
|
};
|
2024-05-21 00:58:49 +03:00
|
|
|
};
|
|
|
|
};
|
2024-03-04 00:34:39 +03:00
|
|
|
}
|