1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-29 19:17:45 +00:00

Make Discord run under Wayland fr this time, it works

This commit is contained in:
RGBCube 2024-06-04 22:04:53 +03:00
parent ab0466850a
commit 55a4e4be40
Signed by: RGBCube
SSH key fingerprint: SHA256:CzqbPcfwt+GxFYNnFVCqoN5Itn4YFrshg1TrnACpA5M

View file

@ -5,8 +5,16 @@
})
(desktopUserHomePackages (with pkgs; [
(discord.override {
((discord.override {
withOpenASAR = true;
withVencord = true;
})
}).overrideAttrs (old: {
nativeBuildInputs = old.nativeBuildInputs ++ [ makeWrapper ];
postFixup = ''
wrapProgram $out/opt/Discord/Discord \
--set ELECTRON_OZONE_PLATFORM_HINT "auto" \
--add-flags "--enable-features=UseOzonePlatform --ozone-platform=wayland"
'';
}))
]))