From f24f32ffcd0a04b9dce6d7e125b82eae1f46b02a Mon Sep 17 00:00:00 2001 From: Wittano Date: Wed, 10 Jan 2024 07:19:34 +0100 Subject: [PATCH] chore(gaming): replaced offical minecraft launcher by prismlauncher --- modules/desktop/gaming/gaming.nix | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/modules/desktop/gaming/gaming.nix b/modules/desktop/gaming/gaming.nix index 85ab1ff1..cb5b70d5 100644 --- a/modules/desktop/gaming/gaming.nix +++ b/modules/desktop/gaming/gaming.nix @@ -28,25 +28,6 @@ in programs.honkers-railway-launcher.enable = cfg.enableMihoyoGames; home-manager.users.wittano.home.packages = - let - jre = pkgs.jre; - envLibPath = lib.makeLibraryPath (with pkgs;[ - curl - libpulseaudio - systemd - libglvnd - ]); - postFixupScript = '' - # Do not create `GPUCache` in current directory - makeWrapper $out/opt/minecraft-launcher/minecraft-launcher $out/bin/minecraft-launcher \ - --prefix LD_LIBRARY_PATH : ${envLibPath} \ - --prefix PATH : ${lib.makeBinPath [ jre ]} \ - --set JAVA_HOME ${lib.getBin jre} \ - --chdir /tmp \ - "''${gappsWrapperArgs[@]}" - ''; - fixedMinecraft = unstable.minecraft.overrideAttrs { postFixup = postFixupScript; }; - in with pkgs; [ # Lutris lutris @@ -62,7 +43,7 @@ in steam-run # Minecraft - fixedMinecraft + prismlauncher ]; boot.kernelPackages = pkgs.linuxKernel.packages.linux_xanmod_stable;