From d38b10e6bdafb3d82f3722e457d05b286f37832d Mon Sep 17 00:00:00 2001 From: Mikilio Date: Tue, 2 Apr 2024 15:05:29 +0200 Subject: [PATCH] morgen: enable wayland via ozone When NIXOS_OZOME_WL is set electron should start with wayland enabled. --- pkgs/applications/office/morgen/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/office/morgen/default.nix b/pkgs/applications/office/morgen/default.nix index 41cae1da04e3..a77655588464 100644 --- a/pkgs/applications/office/morgen/default.nix +++ b/pkgs/applications/office/morgen/default.nix @@ -41,7 +41,7 @@ stdenv.mkDerivation rec { --replace '/opt/Morgen' $out/bin makeWrapper ${electron}/bin/electron $out/bin/morgen \ - --add-flags $out/opt/Morgen/resources/app.asar + --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations,WebRTCPipeWireCapturer}} $out/opt/Morgen/resources/app.asar" runHook postInstall '';