nvidia-container-toolkit: disable create-symlinks hook

This fixes the problem of not being able to run containers mounting
the `/nix` directory within the container (used extensively for
example by tools like `distrobox`)
This commit is contained in:
Rafael Fernández López
2025-11-15 16:13:45 +01:00
parent ce944e8d76
commit b03f1d82c8

View File

@@ -37,6 +37,7 @@ writeScriptBin "nvidia-cdi-generator" ''
}
--discovery-mode ${discovery-mode} \
--device-name-strategy ${device-name-strategy} \
--disable-hook create-symlinks \
--ldconfig-path ${lib.getExe' glibc "ldconfig"} \
--library-search-path ${lib.getLib nvidia-driver}/lib \
--nvidia-cdi-hook-path ${lib.getOutput "tools" nvidia-container-toolkit}/bin/nvidia-cdi-hook \