feat: add QML/Qt6 support system-wide

- Add qt6.full (includes qmlls language server) and libclang
- Configure QT_QPA_PLATFORM_PLUGIN_PATH and QML_IMPORT_PATH environment
  variables
- Link Qt6 share directory for proper resource discovery

Signed-off-by: elwrcl <[email protected]>
This commit is contained in:
elwrcl committed 2026-04-18 02:48:20 +03:00
1 parent 4042d03053
commit 8f6c653156
3 files changed
+16

No files matched your search

+1
View File
@@ -6,5 +6,6 @@
./nix ./nix
./power.nix ./power.nix
./fonts ./fonts
./qml.nix
]; ];
} }
+11
View File
@@ -0,0 +1,11 @@
{ pkgs, ... }:
{
environment.variables = {
QT_QPA_PLATFORM_PLUGIN_PATH = "${pkgs.qt6.qtbase}/lib/qt-6/plugins";
QML_IMPORT_PATH = "${pkgs.qt6.qtdeclarative}/lib/qt-6/qml";
};
environment.pathsToLink = [
"/share/qt6"
];
}
+4
View File
@@ -30,5 +30,9 @@ with pkgs;
smartmontools smartmontools
gsmartcontrol gsmartcontrol
parted parted
# qml/qt6
qt6.full
libclang
]; ];
} }