morgen: enable wayland via ozone

When NIXOS_OZOME_WL is set electron should start with wayland enabled.
This commit is contained in:
Mikilio 2024-04-02 15:05:29 +02:00
parent 215881dc2f
commit d38b10e6bd
No known key found for this signature in database
GPG Key ID: 5B2F1A890CF33F3F

View File

@ -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
'';