--- /dev/null
+# for open-gpu-kernel-modules building
+gcc
+g++
+make
+linux-headers-6.1.0-10-amd64
+xz-utils
+# for NVIDIA driver .run --no-kernel-modules
+libvulkan1
+libglvnd-dev
+pkg-config
+# so we can add nvidia.NVreg_OpenRmEnableUnsupportedGpus=1 to default grub
+grub-efi-amd64
+
#!/bin/sh
set -e
+set -x
debian_version="bookworm"
legal_system_names="x220 w530"
setup_scripts_dir="${config_tree_prefix}/setup_scripts"
cd "${setup_scripts_dir}"
./setup.sh "${system_name}" "" user desktop thinkpad "${system_name}"
+
+if [ "$system_name" = "w530" ]; then
+ cd
+ git clone https://github.com/NVIDIA/open-gpu-kernel-modules
+ cd open-gpu-kernel-modules
+ git checkout 337e28e
+ make modules -j($nproc)
+ make modules_install
+ cd
+ driver_version=535.86.05
+ runscript=NVIDIA-Linux-x86_64-${driver_version}.run
+ wget https://us.download.nvidia.com/XFree86/Linux-x86_64/${driver_version}/${runscript}
+ chmod u+x ${runscript}
+ ./${runscript} --no-kernel-modules
+fi