For versions of lutris 0.5.20+, it no longer links proton packages under the proton folder, instead uses wine's folder for both types.
19 lines
649 B
Nix
19 lines
649 B
Nix
{ pkgs, lib, ... }:
|
|
{
|
|
programs.lutris = {
|
|
enable = true;
|
|
protonPackages = with pkgs; [ proton-ge-bin ];
|
|
winePackages = with pkgs; [ wineWow64Packages.full ];
|
|
};
|
|
|
|
nmt.script =
|
|
let
|
|
runnersDir = "home-files/.local/share/lutris/runners";
|
|
differentiatesProton = lib.versionOlder pkgs.lutris.version "0.5.20";
|
|
protonDirectory = if differentiatesProton then "proton" else "wine";
|
|
in
|
|
''
|
|
assertFileExists ${runnersDir}/${protonDirectory}/${lib.toLower pkgs.proton-ge-bin.steamcompattool.name}/proton
|
|
assertFileExists ${runnersDir}/wine/${lib.toLower pkgs.wineWow64Packages.name}/bin/wine
|
|
'';
|
|
}
|