summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--home-configuration/managed/mindustry/default.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/home-configuration/managed/mindustry/default.nix b/home-configuration/managed/mindustry/default.nix
index 929bca7..9d6644c 100644
--- a/home-configuration/managed/mindustry/default.nix
+++ b/home-configuration/managed/mindustry/default.nix
@@ -10,13 +10,14 @@ let
hash = "sha256:1s597ywczx5c92dnqkij6drzkpn92613fqqsc1imw7dbhf07xjml";
};
mindustry = pkgs.writeShellScriptBin "mindustry" ''
- export LD_LIBRARY_PATH=${pkgs.libglvnd}/lib:$LD_LIBRARY_PATH
+ export LD_LIBRARY_PATH=${pkgs.libglvnd}/lib:${pkgs.pulseaudio}/lib:${pkgs.alsa-lib}/lib:$LD_LIBRARY_PATH
+ export SDL_AUDIODRIVER=pulseaudio
exec ${pkgs.jdk17}/bin/java -jar ${src} "$@"
'';
in
{
home.packages = [ mindustry ];
- home.file.".local/share/icons/hicolor/scalable/apps/mindustry.png".source = icon;
+ home.file.".local/share/icons/hicolor/512x512/apps/mindustry.png".source = icon;
xdg.desktopEntries.mindustry.comment = "Sandbox tower defense with factory automation";
xdg.desktopEntries.mindustry.name = "Mindustry";
xdg.desktopEntries.mindustry.genericName = "Tower defense game";