2025-03-29 21:03:07 -04:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
cfg = config.lily.wayland;
|
|
|
|
in {
|
|
|
|
options.lily.wayland.enable = lib.mkEnableOption "activate wayland";
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
programs.xwayland.enable = true;
|
|
|
|
environment.systemPackages = with pkgs;
|
|
|
|
[
|
|
|
|
wl-clipboard
|
|
|
|
xwayland
|
2025-04-01 12:16:35 -04:00
|
|
|
kdePackages.xwaylandvideobridge
|
2025-03-29 21:03:07 -04:00
|
|
|
wayland-utils
|
|
|
|
wev
|
|
|
|
]
|
|
|
|
++ lib.optionals (config.lily.plasma.enable) [kdePackages.plasma-wayland-protocols];
|
|
|
|
environment.sessionVariables = {
|
|
|
|
NIXOS_OZONE_WL = "1";
|
|
|
|
MOZ_ENABLE_WAYLAND = "1";
|
|
|
|
QT_QUICK_CONTROLS_STYLE = "org.kde.desktop";
|
|
|
|
SDL_VIDEODRIVER = "wayland";
|
|
|
|
CLUTTER_BACKEND = "wayland";
|
|
|
|
QT_QPA_PLATFORM = "wayland;xcb";
|
|
|
|
XDG_SESSION_TYPE = "wayland";
|
|
|
|
GDK_BACKEND = "wayland,x11";
|
|
|
|
};
|
|
|
|
services.dbus.enable = true;
|
|
|
|
security = {
|
|
|
|
polkit.enable = true;
|
|
|
|
rtkit.enable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|