flake/nixos/profiles/use-cases/wayland.nix
2023-11-22 10:19:11 +08:00

7 lines
266 B
Nix
Executable file

{...}: {
programs.xwayland.enable = true; # enable XWayland
hardware.nvidia.nvidiaSettings = false; # NVIDIA settings menu, wont do anything on wayland
environment.sessionVariables = {
"NIXOS_OZONE_WL" = "1"; # let electron applications use wayland
};
}