dotfiles/modules/gaming/leagueoflegends.nix

31 lines
675 B
Nix
Raw Normal View History

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