From d0b8873472ad24c2c7543b50371793bafec887c9 Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Thu, 5 Sep 2024 00:30:16 +0000 Subject: [PATCH] nixosMod/improvedDef/wayland: make Firefox & Electron apps use Wayland --- nix/nixos-modules/improvedDefaults/wayland.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nix/nixos-modules/improvedDefaults/wayland.nix b/nix/nixos-modules/improvedDefaults/wayland.nix index 5578a53..cbab594 100644 --- a/nix/nixos-modules/improvedDefaults/wayland.nix +++ b/nix/nixos-modules/improvedDefaults/wayland.nix @@ -41,6 +41,12 @@ in (lib.mkIf (config.services.wayland.enable) { + # TODO mirror on home-manager + environment.sessionVariables = { + MOZ_ENABLE_WAYLAND = lib.mkIf config.programs.firefox.enable "1"; + NIXOS_OZONE_WL = "1"; + }; + # make Steam Input events possible programs.steam.extest.enable = lib.mkIf config.programs.steam.enable true;