1diff --git a/qt6/src/platformtheme/kdeplatformtheme.cpp b/qt6/src/platformtheme/kdeplatformtheme.cpp
2index fea04b5..7efafd1 100644
3--- a/qt6/src/platformtheme/kdeplatformtheme.cpp
4+++ b/qt6/src/platformtheme/kdeplatformtheme.cpp
5@@ -551,6 +551,7 @@ bool KdePlatformTheme::checkIfThemeExists(const QString &themePath)
6 // QML_IMPORT_PATH is the new one, but QML2_IMPORT_PATH is still used
7 checkEnvironmentVariable("QML2_IMPORT_PATH");
8 checkEnvironmentVariable("QML_IMPORT_PATH");
9+ checkEnvironmentVariable("NIXPKGS_QT6_QML_IMPORT_PATH");
10
11 for (const QString &path : moduleSearchPaths) {
12 if (QDir(path + themePath).exists()) {