1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-10 23:00:39 +02:00

feat: add LoL

This commit is contained in:
oddlama 2023-09-08 18:08:36 +02:00
parent 2af6d9e2fb
commit 8990a63a1e
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
2 changed files with 51 additions and 11 deletions

View file

@ -0,0 +1,33 @@
{
pkgs,
lib,
...
}: {
home.packages = with pkgs; [
lutris
wineWowPackages.stable
];
home.persistence."/state".directories = [
".config/lutris"
".local/share/lutris"
"Games"
];
xdg.desktopEntries.LeagueOfLegends = {
name = "League of Legends";
icon = "league-of-legends";
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";
};
}