fix(build): honor GPU_DRIVER from the environment (Sam & Claude) #32

Merged
clawdie merged 1 commit from fix-gpu-driver-env into main 2026-06-04 23:20:43 +02:00

View file

@ -39,9 +39,11 @@ CLAWDIE_REF="${CLAWDIE_REF:-main}"
DEFAULT_PKG_BRANCH="latest" # latest or quarterly
DEFAULT_DESKTOP="xfce" # operator USB desktop
# GPU driver variant (set at build time via --gpu-driver flag)
# GPU driver variant (set at build time via the GPU_DRIVER environment variable)
# intel | amd | nvidia-590 | nvidia-470 | nvidia-390 | vesa | "" (auto-detect)
GPU_DRIVER=""
# Use the :- form so an env value (e.g. `GPU_DRIVER=nvidia-590 ./build.sh`) is
# honored; a plain GPU_DRIVER="" here would clobber the environment.
GPU_DRIVER="${GPU_DRIVER:-}"
# Universal NVIDIA lane (opt-in). When YES, the image carries an on-image NVIDIA
# pkg repo for all three branches (390/470/580), does NOT bake a single branch,