mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-26 23:35:36 +00:00
d021baa1bb
required because they don't share all attributes
33 lines
754 B
Nix
33 lines
754 B
Nix
{ config, pkgs, lib, ... }: {
|
|
|
|
options.gaming.leagueoflegends.enable =
|
|
lib.mkEnableOption "League of Legends";
|
|
|
|
config =
|
|
lib.mkIf (config.gaming.leagueoflegends.enable && pkgs.stdenv.isLinux) {
|
|
|
|
# League of Legends anti-cheat requirement
|
|
boot.kernel.sysctl = { "abi.vsyscall32" = 0; };
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
# Lutris requirement to install the game
|
|
lutris
|
|
amdvlk
|
|
wineWowPackages.stable
|
|
# vulkan-tools
|
|
|
|
# Required according to https://lutris.net/games/league-of-legends/
|
|
openssl
|
|
gnome.zenity
|
|
|
|
# Don't remember if this is required
|
|
dconf
|
|
|
|
];
|
|
|
|
environment.sessionVariables = { QT_X11_NO_MITSHM = "1"; };
|
|
|
|
};
|
|
}
|