diff --git a/modules/wsl-distro.nix b/modules/wsl-distro.nix index 7bfa555d..8b4150ea 100644 --- a/modules/wsl-distro.nix +++ b/modules/wsl-distro.nix @@ -77,7 +77,25 @@ in extraPackages = mkIf cfg.useWindowsDriver [ (pkgs.runCommand "wsl-lib" { } '' mkdir "$out" - ln -s /usr/lib/wsl/lib "$out/lib" + # # we cannot just symlink the lib directory because it breaks merging with other drivers that provide the same directory + ln -s /usr/lib/wsl/lib/libcudadebugger.so.1 "$out/lib" + ln -s /usr/lib/wsl/lib/libcuda.so "$out/lib" + ln -s /usr/lib/wsl/lib/libcuda.so.1 "$out/lib" + ln -s /usr/lib/wsl/lib/libcuda.so.1.1 "$out/lib" + ln -s /usr/lib/wsl/lib/libd3d12core.so "$out/lib" + ln -s /usr/lib/wsl/lib/libd3d12.so "$out/lib" + ln -s /usr/lib/wsl/lib/libdxcore.so "$out/lib" + ln -s /usr/lib/wsl/lib/libnvcuvid.so "$out/lib" + ln -s /usr/lib/wsl/lib/libnvcuvid.so.1 "$out/lib" + ln -s /usr/lib/wsl/lib/libnvdxdlkernels.so "$out/lib" + ln -s /usr/lib/wsl/lib/libnvidia-encode.so "$out/lib" + ln -s /usr/lib/wsl/lib/libnvidia-encode.so.1 "$out/lib" + ln -s /usr/lib/wsl/lib/libnvidia-ml.so.1 "$out/lib" + ln -s /usr/lib/wsl/lib/libnvidia-opticalflow.so "$out/lib" + ln -s /usr/lib/wsl/lib/libnvidia-opticalflow.so.1 "$out/lib" + ln -s /usr/lib/wsl/lib/libnvoptix.so.1 "$out/lib" + ln -s /usr/lib/wsl/lib/libnvwgf2umx.so "$out/lib" + ln -s /usr/lib/wsl/lib/nvidia-smi "$out/lib" '') ]; };