dotfiles/modules/gaming/leagueoflegends.nix
2022-05-26 19:33:18 -04:00

30 lines
611 B
Nix

{ config, pkgs, lib, ... }: {
options.gaming.leagueoflegends = lib.mkEnableOption "League of Legends";
config = lib.mkIf config.gaming.leagueoflegends {
nixpkgs.config.allowUnfree = true;
# League of Legends anti-cheat requirement
boot.kernel.sysctl = { "abi.vsyscall32" = 0; };
environment.systemPackages = with pkgs; [
# Lutris requirement to install the game
lutris
amdvlk
wine
# Required according to https://lutris.net/games/league-of-legends/
openssl
gnome.zenity
# Don't remember if this is required
dconf
];
};
}