summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcoast <coasteen@proton.me>2026-09-07 04:29:09 +0330
committercoast <coasteen@proton.me>2026-09-07 04:29:09 +0330
commita7cdf9580a901ed65f179417f6ed8a0848491b66 (patch)
treed4a47a1c2b062dbcf3e68dc84b46de32c65cfc45
parenta3b4fcff8da036382d45a71516c07fce28d1bca7 (diff)
downloadnix-a7cdf9580a901ed65f179417f6ed8a0848491b66.tar.gz
nix-a7cdf9580a901ed65f179417f6ed8a0848491b66.tar.bz2
nix-a7cdf9580a901ed65f179417f6ed8a0848491b66.tar.xz
nix-a7cdf9580a901ed65f179417f6ed8a0848491b66.tar.zst
g
-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";