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.
This commit is contained in:
parent
5dbf1419fe
commit
3d2f4980b7
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue