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 "$@"