From 2b72ffb6cfb3eaed582ba83933bec2284804d752 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Thu, 26 May 2022 19:33:18 -0400 Subject: [PATCH] attempts to improve league install --- modules/gaming/leagueoflegends.nix | 20 ++++++++++++++++++-- modules/gaming/lutris.nix | 2 +- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/modules/gaming/leagueoflegends.nix b/modules/gaming/leagueoflegends.nix index e12bb69..ff9decc 100644 --- a/modules/gaming/leagueoflegends.nix +++ b/modules/gaming/leagueoflegends.nix @@ -4,10 +4,26 @@ config = lib.mkIf config.gaming.leagueoflegends { - # League of Legends anti-cheat + nixpkgs.config.allowUnfree = true; + + # League of Legends anti-cheat requirement boot.kernel.sysctl = { "abi.vsyscall32" = 0; }; - environment.systemPackages = with pkgs; [ openssl dconf ]; + 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 + + ]; }; } diff --git a/modules/gaming/lutris.nix b/modules/gaming/lutris.nix index 66de3c6..812cb91 100644 --- a/modules/gaming/lutris.nix +++ b/modules/gaming/lutris.nix @@ -2,7 +2,7 @@ options.gaming.lutris = lib.mkEnableOption "Lutris"; - config = lib.mkIf (config.gaming.lutris || config.gaming.leagueoflegends) { + config = lib.mkIf config.gaming.lutris { environment.systemPackages = with pkgs; [ lutris amdvlk wine ]; };