From a20bab85cd16a9a65063c93b3609c30d3591963d Mon Sep 17 00:00:00 2001 From: matt1432 Date: Mon, 26 Feb 2024 20:14:58 -0500 Subject: [PATCH] fix(discord): add flags and opengl paths to package --- modules/hyprland/packages.nix | 33 +++++++++++++++++++++++---------- 1 file changed, 23 insertions(+), 10 deletions(-) diff --git a/modules/hyprland/packages.nix b/modules/hyprland/packages.nix index 2dac20d4..58cc15ee 100644 --- a/modules/hyprland/packages.nix +++ b/modules/hyprland/packages.nix @@ -35,16 +35,6 @@ in { jellyfin-media-player prismlauncher-qt5 - /* - Discord themes for Vencord - https://markchan0225.github.io/RoundedDiscord/RoundedDiscord.theme.css - https://raw.githubusercontent.com/dracula/BetterDiscord/master/Dracula_Official.theme.css - */ - (pkgs.discord.override { - withOpenASAR = true; - withVencord = true; - }) - # tools wl-color-picker wl-clipboard @@ -52,6 +42,29 @@ in { grim slurp swappy + + /* + Discord themes for Vencord + https://markchan0225.github.io/RoundedDiscord/RoundedDiscord.theme.css + https://raw.githubusercontent.com/dracula/BetterDiscord/master/Dracula_Official.theme.css + */ + (symlinkJoin { + name = "discord"; + paths = [ + (discord.override { + withOpenASAR = true; + withVencord = true; + }) + ]; + buildInputs = [makeWrapper]; + postBuild = '' + wrapProgram $out/bin/discord --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ + addOpenGLRunpath.driverLink + libglvnd + ]}" \ + --add-flags "--enable-features=UseOzonePlatform --ozone-platform=wayland" + ''; + }) ]; wayland.windowManager.hyprland = {