From 8a1b952ce6fc591fb2ec4482c9df63e41f06f5c8 Mon Sep 17 00:00:00 2001 From: Erik Simon Date: Mon, 16 Nov 2026 05:57:39 +0100 Subject: [PATCH] feat(terra): game-dev harness tools next to the Unreal env Newest Blender from unstable (pkgsRocm for HIP, hiPrio over desktop-apps' copy), python3 and git-lfs for the harness and project repos, the harness's bin first on PATH, Tripo CLI telemetry off. Co-Authored-By: Claude Opus 5.5 --- services/desktop/unreal-engine.nix | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/services/desktop/unreal-engine.nix b/services/desktop/unreal-engine.nix index 30c32ad..1e76d78 100644 --- a/services/desktop/unreal-engine.nix +++ b/services/desktop/unreal-engine.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: +{ pkgs, lib, inputs, ... }: # Unreal Engine: Epic's prebuilt Linux zip in an FHS env. The zip is behind an # Epic login, so it's unpacked by hand to engineDir rather than fetched by Nix. @@ -83,6 +83,14 @@ let editor = fhs "unreal-editor" "${engineDir}/Engine/Binaries/Linux/UnrealEditor"; shell = fhs "unreal-shell" "bash"; # RunUAT, project builds, debugging + # nixpkgs 26.05 has Blender 5.1; the game-dev harness (projects/.harness) wants + # the newest one. pkgsRocm, as in desktop-apps: Cycles needs HIP on the RX 6800 XT. + # hiPrio wins the bin/blender collision with desktop-apps.nix's pkgsRocm.blender. + unstable = import inputs.nixpkgs-unstable { + inherit (pkgs.stdenv.hostPlatform) system; + config = pkgs.config; + }; + desktopItem = pkgs.makeDesktopItem { name = "unreal-editor"; desktopName = "Unreal Editor"; @@ -92,7 +100,21 @@ let }; in { - environment.systemPackages = [ editor shell desktopItem ]; + environment.systemPackages = [ + editor + shell + desktopItem + pkgs.python3 # the harness tools (ue, blender, asset_pipe, ...) are Python + (lib.hiPrio unstable.pkgsRocm.blender) + pkgs.git-lfs # the project repos (LANfall, ...) keep their assets in LFS + ]; + + # The game-dev harness's commands (ue, blender, asset_pipe, tripo_studio, ...). First on PATH: its `blender` + # wraps the real one (and finds it further down PATH). The harness's own setup is .harness/setup.sh. + environment.extraInit = '' + export PATH="/mnt/ssd_01/unreal/projects/.harness/bin:$PATH" + ''; + environment.sessionVariables.TRIPO_ANALYTICS_ENABLED = "0"; # Tripo CLI telemetry off systemd.tmpfiles.rules = [ "d /mnt/ssd_01/unreal 0755 darman users -" ]; }