From 8aa53df5b2d51670ff5c130d73487d12605ae8ab Mon Sep 17 00:00:00 2001 From: Kopatz <7265381+Kropatz@users.noreply.github.com> Date: Thu, 21 Dec 2023 22:00:48 +0100 Subject: [PATCH] fix tetrio --- modules/graphical/shared.nix | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/modules/graphical/shared.nix b/modules/graphical/shared.nix index 1126f74..41524e1 100644 --- a/modules/graphical/shared.nix +++ b/modules/graphical/shared.nix @@ -1,9 +1,22 @@ -{ config, pkgs, inputs, ... }: +{ config, pkgs, inputs, lib, ... }: let screenshot = pkgs.writeShellScriptBin "screenshot.sh" '' ${pkgs.scrot}/bin/scrot -fs - | ${pkgs.xclip}/bin/xclip -selection clipboard -t image/png -i ''; + fixedTetrio = pkgs.tetrio-desktop.overrideAttrs (old: rec { + withTetrioPlus = true; + libPath = lib.makeLibraryPath [ + pkgs.libGL + pkgs.libpulseaudio + pkgs.systemd + ]; + postFixup = '' + wrapProgram $out/opt/TETR.IO/tetrio-desktop \ + --prefix LD_LIBRARY_PATH : ${libPath}:$out/opt/TETR.IO \ + ''${gappsWrapperArgs[@]} + ''; + }); in { programs.steam = { @@ -56,7 +69,7 @@ in taisei localsend element-desktop - tetrio-desktop + fixedTetrio krita unstable.libreoffice-fresh mangohud