2024-05-22 14:29:45 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: let
|
2024-05-20 23:55:11 +02:00
|
|
|
cfg = config.modules.wms.wayland;
|
2024-07-22 22:46:11 +02:00
|
|
|
inherit (lib) mkIf mkEnableOption;
|
2024-05-20 23:55:11 +02:00
|
|
|
in {
|
2024-07-22 22:46:11 +02:00
|
|
|
options.modules.wms.wayland.enable = mkEnableOption "wayland";
|
|
|
|
config = mkIf cfg.enable {
|
2024-05-21 20:51:26 +02:00
|
|
|
environment.variables = {
|
|
|
|
NIXOS_OZONE_WL = "1";
|
|
|
|
__GL_GSYNC_ALLOWED = "0";
|
|
|
|
__GL_VRR_ALLOWED = "0";
|
2024-07-22 22:46:11 +02:00
|
|
|
|
2024-06-01 19:31:05 +02:00
|
|
|
GDK_BACKEND = "wayland";
|
2024-05-29 11:46:43 +02:00
|
|
|
QT_QPA_PLATFORM = "wayland";
|
2024-07-22 22:46:11 +02:00
|
|
|
|
2024-05-21 20:51:26 +02:00
|
|
|
MOZ_ENABLE_WAYLAND = "1";
|
2024-07-22 22:46:11 +02:00
|
|
|
|
2024-05-21 20:51:26 +02:00
|
|
|
SDL_VIDEODRIVER = "wayland";
|
2024-07-22 22:46:11 +02:00
|
|
|
|
2024-05-21 20:51:26 +02:00
|
|
|
CLUTTER_BACKEND = "wayland";
|
2024-07-22 22:46:11 +02:00
|
|
|
|
2024-05-21 20:51:26 +02:00
|
|
|
LIBVA_DRIVER_NAME = "nvidia";
|
|
|
|
GTK_USE_PORTAL = "1";
|
2024-07-22 22:46:11 +02:00
|
|
|
|
2024-05-21 20:51:26 +02:00
|
|
|
NIXOS_XDG_OPEN_USE_PORTAL = "1";
|
2024-07-22 22:46:11 +02:00
|
|
|
|
2024-05-21 20:51:26 +02:00
|
|
|
XDG_CURRENT_DESKTOP = "Hyprland";
|
|
|
|
XDG_SESSION_DESKTOP = "Hyprland";
|
2024-07-22 22:46:11 +02:00
|
|
|
XDG_SESSION_TYPE = "wayland";
|
|
|
|
|
2024-05-24 14:57:38 +02:00
|
|
|
ELECTRON_OZONE_PLATFORM_HINT = "auto";
|
2024-07-21 13:18:00 +02:00
|
|
|
WLR_RENDERER_ALLOW_SOFTWARE = "1";
|
2024-07-22 22:46:11 +02:00
|
|
|
|
2024-05-21 20:51:26 +02:00
|
|
|
LIBSEAT_BACKEND = "logind";
|
|
|
|
};
|
|
|
|
};
|
2024-05-20 23:55:11 +02:00
|
|
|
}
|