2022-05-22 19:43:46 -04:00
|
|
|
{ config, pkgs, lib, ... }: {
|
2022-04-25 21:54:53 -04:00
|
|
|
|
2022-12-21 14:18:03 -07:00
|
|
|
options.gaming.leagueoflegends.enable =
|
|
|
|
lib.mkEnableOption "League of Legends";
|
2022-04-25 21:54:53 -04:00
|
|
|
|
2022-12-21 14:18:03 -07:00
|
|
|
config =
|
|
|
|
lib.mkIf (config.gaming.leagueoflegends.enable && pkgs.stdenv.isLinux) {
|
2022-04-25 21:54:53 -04:00
|
|
|
|
2022-12-21 14:18:03 -07:00
|
|
|
# League of Legends anti-cheat requirement
|
|
|
|
boot.kernel.sysctl = { "abi.vsyscall32" = 0; };
|
2022-04-25 21:54:53 -04:00
|
|
|
|
2022-12-21 14:18:03 -07:00
|
|
|
environment.systemPackages = with pkgs; [
|
2022-05-26 19:33:18 -04:00
|
|
|
|
2022-12-21 14:18:03 -07:00
|
|
|
# Lutris requirement to install the game
|
|
|
|
lutris
|
|
|
|
amdvlk
|
|
|
|
wineWowPackages.stable
|
|
|
|
# vulkan-tools
|
2022-05-26 19:33:18 -04:00
|
|
|
|
2022-12-21 14:18:03 -07:00
|
|
|
# Required according to https://lutris.net/games/league-of-legends/
|
|
|
|
openssl
|
|
|
|
gnome.zenity
|
2022-05-26 19:33:18 -04:00
|
|
|
|
2022-12-21 14:18:03 -07:00
|
|
|
# Don't remember if this is required
|
|
|
|
dconf
|
2022-05-26 19:33:18 -04:00
|
|
|
|
2022-12-21 14:18:03 -07:00
|
|
|
];
|
2022-04-25 21:54:53 -04:00
|
|
|
|
2022-12-21 14:18:03 -07:00
|
|
|
environment.sessionVariables = { QT_X11_NO_MITSHM = "1"; };
|
2022-06-03 21:58:20 -04:00
|
|
|
|
2022-12-21 14:18:03 -07:00
|
|
|
};
|
2022-04-25 21:54:53 -04:00
|
|
|
}
|