Update Minecraft configuration to set PATH for FastBackup service

This commit is contained in:
Root User 2026-03-31 16:04:46 +03:00
parent a4c0e6cfac
commit a2e8787ad6
Signed by: root
GPG key ID: 087F0A95E5766D72

View file

@ -75,8 +75,6 @@ in {
loaderVersion = "0.18.4";
};
extraPackages = with pkgs; [ git git-lfs ];
jvmOpts = lib.concatStringsSep " " [
"-Xms54G"
# Use 120GB of RA
@ -299,6 +297,11 @@ in {
};
};
# For FastBackup force etc to have PATH
systemd.services."minecraft-server-fabric-modded".environment = {
PATH = lib.makeBinPath [ pkgs.git pkgs.git-lfs ] + ":/run/current-system/sw/bin";
};
# The nix-minecraft module creates the `minecraft` user/group automatically.
users.users.minecraftprg.extraGroups = ["minecraft"];