From ea6f5b0fac680d107bb90bbdd382fdd462487a6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Numbus?= Date: Fri, 24 Jul 2026 10:22:00 +0200 Subject: [PATCH] Initialize the ids-database --- client/gpu-detect.sh | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/client/gpu-detect.sh b/client/gpu-detect.sh index f5867b0..43277a7 100644 --- a/client/gpu-detect.sh +++ b/client/gpu-detect.sh @@ -20,6 +20,8 @@ gum style --border-foreground="030" --bold --border=normal --padding="0 2" "GPU detection tool for NixOS" +USER_ID="$(id -u)" + declare -A args=( ["brand"]="all" ["hw_accel"]="true" @@ -52,8 +54,21 @@ LATEST="#VERSION#" PACKAGE= RET=1 -NV_DETECT() { +amd_detect() { + DETECT_LOCATION="/run/user/${USER_ID}/gpu-detect/amd" + mkdir -p "${DETECT_LOCATION}" + curl -sL https://gittea.dev/numbus/gpu-detect/raw/branch/26.05/server/ids-database/nvidia/legacy/legacy_340.ids -o "${DETECT_LOCATION}"/legacy_340.ids + curl -sL https://gittea.dev/numbus/gpu-detect/raw/branch/26.05/server/ids-database/nvidia/legacy/legacy_390.ids -o "${DETECT_LOCATION}"/legacy_390.ids + curl -sL https://gittea.dev/numbus/gpu-detect/raw/branch/26.05/server/ids-database/nvidia/legacy/legacy_470.ids -o "${DETECT_LOCATION}"/legacy_470.ids + curl -sL https://gittea.dev/numbus/gpu-detect/raw/branch/26.05/server/ids-database/nvidia/legacy/legacy_580.ids -o "${DETECT_LOCATION}"/legacy_580.ids +} + +intel_detect() { + +} + +nvidia_detect() { NVGA=${1} IDLISTDIR=/usr/share/nvidia @@ -179,4 +194,5 @@ else fi + exit $RET