1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-31 12:07:48 +00:00

Make discord use Wayland

This commit is contained in:
RGBCube 2023-12-04 15:42:33 +03:00
parent 13b3057217
commit 0cd976333a
No known key found for this signature in database

View file

@ -5,8 +5,15 @@
}) })
(with pkgs; homePackages "nixos" [ (with pkgs; homePackages "nixos" [
(discord.override { ((discord.override {
withOpenASAR = true; withOpenASAR = true;
withVencord = true; withVencord = true;
}) }).overrideAttrs (old: with pkgs; {
libPath = old.libPath + ":${libglvnd}/lib";
nativeBuildInputs = old.nativeBuildInputs ++ [ makeWrapper ];
postFixup = ''
wrapProgram $out/opt/Discord/Discord --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform=wayland}}"
'';
}))
]) ])