about summary refs log tree commit diff
diff options
context:
space:
mode:
authormangoiv2024-08-18 15:44:00 +0200
committermangoiv2024-08-18 15:44:00 +0200
commit2a1b95d6e33a869d52889154b6a814bc5b2e5cd9 (patch)
treef586a8c7357d53f6e619b32270e21a022f428f2d
parent9cbf3e5f3c87f86e000be7d37273ec19a42377e9 (diff)
wire-desktop: add ozone platform hint for wayland
-rw-r--r--pkgs/applications/networking/instant-messengers/wire-desktop/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/applications/networking/instant-messengers/wire-desktop/default.nix b/pkgs/applications/networking/instant-messengers/wire-desktop/default.nix
index 9b595f9ba191..9d41b0455a72 100644
--- a/pkgs/applications/networking/instant-messengers/wire-desktop/default.nix
+++ b/pkgs/applications/networking/instant-messengers/wire-desktop/default.nix
@@ -136,6 +136,10 @@ let
       libdbusmenu
     ];
 
+    preFixup = ''
+      gappsWrapperArgs+=(--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --ozone-platform=wayland --enable-features=WaylandWindowDecorations}}")
+    '';
+
     postFixup = ''
       makeWrapper $out/opt/Wire/wire-desktop $out/bin/wire-desktop \
         "''${gappsWrapperArgs[@]}"