1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00
home-manager/tests/modules/programs/lutris/wine-configuration.nix
B1kku a51598236f
lutris: add module (#6964)
Add any number of wine packages
    Add any number of proton packages
    Link runners directly from nix instead of using lutris.
    Specify the steam package lutris should use.
    Extra packages passed to lutris (mainly since it's often missing essential things, such as umu-launcher)
2025-05-08 13:01:35 -05:00

17 lines
486 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";
in
''
assertFileExists ${runnersDir}/proton/${lib.toLower pkgs.proton-ge-bin.steamcompattool.name}/proton
assertFileExists ${runnersDir}/wine/${lib.toLower pkgs.wineWow64Packages.name}/bin/wine
'';
}