Skip to content

Commit

Permalink
feat(gaming): added minecraft
Browse files Browse the repository at this point in the history
  • Loading branch information
Wittano committed Jan 5, 2024
1 parent ee8cb0f commit feb389c
Showing 1 changed file with 35 additions and 12 deletions.
47 changes: 35 additions & 12 deletions modules/desktop/gaming/gaming.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,43 @@ in
# Honkai Railway
programs.honkers-railway-launcher.enable = cfg.enableMihoyoGames;

home-manager.users.wittano.home.packages = with pkgs; [
# Lutris
lutris
xdelta
xterm
gnome.zenity
home-manager.users.wittano.home.packages =
let
jre = pkgs.jre17_minimal;
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 = pkgs.minecraft.overrideAttrs { postFixup = postFixupScript; };
in
with pkgs; [
# Lutris
lutris
xdelta
xterm
gnome.zenity

# Wine
bottles
wineWowPackages.full
# Wine
bottles
wineWowPackages.full

# FSH
steam-run
];
# FSH
steam-run

# Minecraft
fixedMinecraft
];

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

Expand Down

0 comments on commit feb389c

Please sign in to comment.