vmTools: use getOutput for MODULE_DIR

Using modulesClosure ought to work, but `lib.getOutput "modules" kernel`
is consistent with how this file was before.
This commit is contained in:
Jared Baur 2025-08-19 05:56:12 -07:00
parent 458f0558e9
commit 098f006bfc
No known key found for this signature in database

View File

@ -212,7 +212,7 @@ rec {
fi
# Set up automatic kernel module loading.
export MODULE_DIR=${modulesClosure}/lib/modules/
export MODULE_DIR=${lib.getOutput "modules" kernel}/lib/modules/
${coreutils}/bin/cat <<EOF > /run/modprobe
#! ${bash}/bin/sh
export MODULE_DIR=$MODULE_DIR