Commit 3d2f4980 authored by LilleAila's avatar LilleAila
Browse files

vesktop: IME with NIXOS_OZONE_WL

This moves the `--enable-wayland-ime` flag to NIXOS_OZONE_WL instead of
having a separate option for it.
parent 5dbf1419
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -17,7 +17,6 @@
  # Enables the use of vencord from nixpkgs instead of
  # letting vesktop manage it's own version
, withSystemVencord ? true
, withWaylandIME ? false
}:
stdenv.mkDerivation (finalAttrs: {
  pname = "vesktop";
@@ -129,8 +128,7 @@ stdenv.mkDerivation (finalAttrs: {
      makeWrapper ${electron}/bin/electron $out/bin/vesktop \
        --add-flags $out/opt/Vesktop/resources/app.asar \
        ${lib.optionalString withTTS "--add-flags \"--enable-speech-dispatcher\""} \
        ${lib.optionalString withWaylandIME "--add-flags \"--enable-wayland-ime\""} \
        --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}"
        --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --enable-wayland-ime}}"

      runHook postInstall
    '';