feat(shared/hm): add rpc-bridge for wine games to native linux
This commit is contained in:
parent
55bf715bec
commit
dbb5f7a027
2 changed files with 15 additions and 1 deletions
|
|
@ -1,7 +1,6 @@
|
||||||
{ self, pkgs, ... }:
|
{ self, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
home.file = {
|
home.file = {
|
||||||
# Configuration for gamemode, for running games with optimizations.
|
# Configuration for gamemode, for running games with optimizations.
|
||||||
".config/gamemode.ini".source = ./dotfiles/gamemode.ini;
|
".config/gamemode.ini".source = ./dotfiles/gamemode.ini;
|
||||||
|
|
@ -10,6 +9,15 @@
|
||||||
".config/dxvk.conf".text = ''
|
".config/dxvk.conf".text = ''
|
||||||
dxvk.enableGraphicsPipelineLibrary = Auto
|
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; [
|
home.packages = with pkgs; [
|
||||||
|
|
|
||||||
6
shared/home-manager/scripts/games/launch_rpc.sh
Executable file
6
shared/home-manager/scripts/games/launch_rpc.sh
Executable file
|
|
@ -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 "$@"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue