|
|
|
@ -8,7 +8,8 @@ |
|
|
|
|
wineGlobalEnv ? [ "DXVK_STATE_CACHE=0" ], |
|
|
|
|
winePatches ? [ ./patches/joyaxis.patch ], |
|
|
|
|
virtualDesktop ? null, |
|
|
|
|
registryFiles ? [ ] |
|
|
|
|
registryFiles ? [ ], |
|
|
|
|
captureMouse ? true |
|
|
|
|
}: |
|
|
|
|
|
|
|
|
|
#check wether string is two positive integers separated by x |
|
|
|
@ -36,6 +37,10 @@ let |
|
|
|
|
name = "win10.reg"; |
|
|
|
|
text = ./win10.reg; |
|
|
|
|
}; |
|
|
|
|
captureMouseReg = pkgs.writeTextFile { |
|
|
|
|
name = "captureMouse.reg"; |
|
|
|
|
text = ./captureMouse.reg; |
|
|
|
|
}; |
|
|
|
|
script = pkgs.writeShellScriptBin binName '' |
|
|
|
|
#sane bash |
|
|
|
|
set -eo pipefail |
|
|
|
@ -70,6 +75,8 @@ let |
|
|
|
|
mkdir -p "$launcherCachePers" "$WINEPREFIX/drive_c/users/$USER/AppData/Roaming/" |
|
|
|
|
ln -s "$launcherCachePers" "$WINEPREFIX/drive_c/users/$USER/AppData/Roaming/" |
|
|
|
|
|
|
|
|
|
${lib.optionalString captureMouse ("${regEdit} ${captureMouseReg.text}")} |
|
|
|
|
|
|
|
|
|
#apply custom user registry files |
|
|
|
|
${lib.concatMapStrings (x: "${regEdit} " + x + "\n") registryFiles} |
|
|
|
|
|
|
|
|
|