games/steam-sandbox: Add mangohud

This commit is contained in:
Simon Bruder 2022-05-01 10:30:31 +02:00
parent 36b564d978
commit 532ebfb7b9
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -60,6 +60,7 @@ let
--bind "$base_dir/.config" "$HOME/.config"
--bind "$base_dir/.factorio" "$HOME/.factorio"
--bind "$base_dir/data" "$HOME/data"
--ro-bind-try "$HOME/.config/MangoHud" "$HOME/.config/MangoHud"
# input
--dev-bind /dev/input /dev/input
@ -68,6 +69,7 @@ let
)
unset SDL_VIDEODRIVER QT_QPA_PLATFORM # games generally dont support wayland
export PATH="${pkgs.unstable.mangohud}/bin:$PATH"
${pkgs.bubblewrap}/bin/bwrap \
"''${bubblewrap_args[@]}" \