From a2e8787ad6dba62a6b690e3ea4ca0c80294cf993 Mon Sep 17 00:00:00 2001 From: Christine Elisabeth Koppel Date: Tue, 31 Mar 2026 16:04:46 +0300 Subject: [PATCH] Update Minecraft configuration to set PATH for FastBackup service --- nix-system-configs/modules/system/minecraft.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/nix-system-configs/modules/system/minecraft.nix b/nix-system-configs/modules/system/minecraft.nix index 45bde7c..f75c1de 100644 --- a/nix-system-configs/modules/system/minecraft.nix +++ b/nix-system-configs/modules/system/minecraft.nix @@ -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"];