mirror of
https://github.com/RGBCube/ncc
synced 2025-07-30 19:47:47 +00:00
Make discord use Wayland
This commit is contained in:
parent
13b3057217
commit
0cd976333a
1 changed files with 9 additions and 2 deletions
|
@ -5,8 +5,15 @@
|
|||
})
|
||||
|
||||
(with pkgs; homePackages "nixos" [
|
||||
(discord.override {
|
||||
((discord.override {
|
||||
withOpenASAR = 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}}"
|
||||
'';
|
||||
}))
|
||||
])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue