diff options
author | Wout Mertens <Wout.Mertens@gmail.com> | 2021-11-27 01:54:14 +0100 |
---|---|---|
committer | Wout Mertens <Wout.Mertens@gmail.com> | 2022-01-27 09:46:36 +0100 |
commit | b2eb5f62a7fd94ab58acafec9f64e54f97c508a6 (patch) | |
tree | 5e0da9b66e9b8751795208922e6a56c8cf353691 /pkgs/applications/networking/instant-messengers/discord/linux.nix | |
parent | e722007bf05802573b41701c49da6c8814878171 (diff) | |
download | nixpkgs-b2eb5f62a7fd94ab58acafec9f64e54f97c508a6.tar nixpkgs-b2eb5f62a7fd94ab58acafec9f64e54f97c508a6.tar.gz nixpkgs-b2eb5f62a7fd94ab58acafec9f64e54f97c508a6.tar.bz2 nixpkgs-b2eb5f62a7fd94ab58acafec9f64e54f97c508a6.tar.lz nixpkgs-b2eb5f62a7fd94ab58acafec9f64e54f97c508a6.tar.xz nixpkgs-b2eb5f62a7fd94ab58acafec9f64e54f97c508a6.tar.zst nixpkgs-b2eb5f62a7fd94ab58acafec9f64e54f97c508a6.zip |
wayland: enable ozone via $NIXOS_OZONE_WL
Chrome, Chromium, VSCode, Slack, Signal, Discord, element-desktop, schildichat. For the latter two, the feature flag useWayland was removed and a wrapper script was provided.
Diffstat (limited to 'pkgs/applications/networking/instant-messengers/discord/linux.nix')
-rw-r--r-- | pkgs/applications/networking/instant-messengers/discord/linux.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/applications/networking/instant-messengers/discord/linux.nix b/pkgs/applications/networking/instant-messengers/discord/linux.nix index 866b2889094..c9e642aceb9 100644 --- a/pkgs/applications/networking/instant-messengers/discord/linux.nix +++ b/pkgs/applications/networking/instant-messengers/discord/linux.nix @@ -80,6 +80,7 @@ stdenv.mkDerivation rec { wrapProgram $out/opt/${binaryName}/${binaryName} \ "''${gappsWrapperArgs[@]}" \ + --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--enable-features=UseOzonePlatform --ozone-platform=wayland}}" \ --prefix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.name}/" \ --prefix LD_LIBRARY_PATH : ${libPath}:$out/opt/${binaryName} |