From dbb5f7a027bf9ef93fd759cf4e22f88e30f730a6 Mon Sep 17 00:00:00 2001 From: "Alexandre Cavalheiro S. Tiago da Silva" Date: Fri, 31 Oct 2025 15:30:26 -0300 Subject: [PATCH] feat(shared/hm): add rpc-bridge for wine games to native linux --- shared/home-manager/gaming.nix | 10 +++++++++- shared/home-manager/scripts/games/launch_rpc.sh | 6 ++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100755 shared/home-manager/scripts/games/launch_rpc.sh diff --git a/shared/home-manager/gaming.nix b/shared/home-manager/gaming.nix index 1fba2da..dd51520 100644 --- a/shared/home-manager/gaming.nix +++ b/shared/home-manager/gaming.nix @@ -1,7 +1,6 @@ { self, pkgs, ... }: { - home.file = { # Configuration for gamemode, for running games with optimizations. ".config/gamemode.ini".source = ./dotfiles/gamemode.ini; @@ -10,6 +9,15 @@ ".config/dxvk.conf".text = '' dxvk.enableGraphicsPipelineLibrary = Auto ''; + + ".local/share/scripts/rpc-bridge" = { + source = pkgs.fetchzip { + url = "https://github.com/EnderIce2/rpc-bridge/releases/download/v1.4.0.1/bridge.zip"; + hash = "sha256-bfGduu8DbhrPJXihTLlaKTiuBsDB6QRjQtF8zba/hO4="; + stripRoot = false; + }; + recursive = true; + }; }; home.packages = with pkgs; [ diff --git a/shared/home-manager/scripts/games/launch_rpc.sh b/shared/home-manager/scripts/games/launch_rpc.sh new file mode 100755 index 0000000..621b8a4 --- /dev/null +++ b/shared/home-manager/scripts/games/launch_rpc.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +# This script is to pipe the game's RPC connection +# from wine and expose it to Linux processes. + +~/.local/share/scripts/rpc-bridge/bridge.sh ~/.local/share/scripts/games/launch.sh "$@"