Skip to content

Commit

Permalink
chore(gaming): replaced offical minecraft launcher by prismlauncher
Browse files Browse the repository at this point in the history
  • Loading branch information
Wittano committed Jan 10, 2024
1 parent 4acda37 commit f24f32f
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions modules/desktop/gaming/gaming.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -62,7 +43,7 @@ in
steam-run

# Minecraft
fixedMinecraft
prismlauncher
];

boot.kernelPackages = pkgs.linuxKernel.packages.linux_xanmod_stable;
Expand Down

0 comments on commit f24f32f

Please sign in to comment.