nichts/modules/wms/variables.mod.nix

42 lines
844 B
Nix
Raw Normal View History

2024-05-22 14:29:45 +02:00
{
config,
lib,
...
}: let
inherit (lib.modules) mkIf;
inherit (lib.options) mkEnableOption;
2024-05-20 23:55:11 +02:00
cfg = config.modules.wms.wayland;
in {
2024-07-22 22:46:11 +02:00
options.modules.wms.wayland.enable = mkEnableOption "wayland";
2025-07-13 22:51:22 +02:00
config = mkIf true {
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";
ELECTRON_OZONE_PLATFORM_HINT = "wayland";
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
}