feat: use bottles instead of lutris

This commit is contained in:
oddlama 2023-09-12 21:30:45 +02:00
parent 968cd97931
commit bbcf39a3ae
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
3 changed files with 17 additions and 43 deletions

View file

@ -0,0 +1,16 @@
{
pkgs,
lib,
...
}: {
home.packages = with pkgs; [
bottles
winetricks
wineWowPackages.fonts
wineWowPackages.stagingFull
];
home.persistence."/state".directories = [
".local/share/bottles"
];
}

View file

@ -1,42 +0,0 @@
{
pkgs,
lib,
...
}: {
home.packages = with pkgs; [
(lutris.override {
# Needed to stop ntlm_auth warnings in lutris
extraLibraries = p: [p.jansson];
})
openssl
vulkan-tools
dxvk
wineWowPackages.stable
winetricks
];
home.persistence."/state".directories = [
".config/lutris"
".local/share/lutris"
"Games"
];
xdg.desktopEntries.LeagueOfLegends = {
name = "League of Legends";
icon = "league-of-legends";
# XXX: TODO as popup dunst?
exec = toString (pkgs.writeShellScript "league-launcher-script" ''
set -euo pipefail
if [[ "$(sysctl -n abi.vsyscall32)" != 0 ]]; then
echo "Please disable abi.vsyscall32 as root to make the anti-cheat happy:"
echo " sysctl -w abi.vsyscall32=0"
exit 1
fi
LUTRIS_SKIP_INIT=1 ${pkgs.lutris}/bin/lutris lutris:rungame/league-of-legends
'');
categories = ["Game"];
type = "Application";
};
}