forked from mirrors_public/oddlama_nix-config
feat: add LoL
This commit is contained in:
parent
2af6d9e2fb
commit
8990a63a1e
2 changed files with 51 additions and 11 deletions
33
users/myuser/graphical/games/lutris.nix
Normal file
33
users/myuser/graphical/games/lutris.nix
Normal 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";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue