From 8f6c6531568260656e1341eaeeb7021fa1b69284 Mon Sep 17 00:00:00 2001 From: elwrcl Date: Sat, 18 Apr 2026 02:38:39 +0300 Subject: [PATCH] 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 --- nixos/system/default.nix | 1 + nixos/system/qml.nix | 11 +++++++++++ packages.nix | 4 ++++ 3 files changed, 16 insertions(+) create mode 100644 nixos/system/qml.nix diff --git a/nixos/system/default.nix b/nixos/system/default.nix index 6dfc429..f20128e 100644 --- a/nixos/system/default.nix +++ b/nixos/system/default.nix @@ -6,5 +6,6 @@ ./nix ./power.nix ./fonts + ./qml.nix ]; } diff --git a/nixos/system/qml.nix b/nixos/system/qml.nix new file mode 100644 index 0000000..4e2b6cc --- /dev/null +++ b/nixos/system/qml.nix @@ -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" + ]; +} diff --git a/packages.nix b/packages.nix index dad97df..f5d5c8d 100644 --- a/packages.nix +++ b/packages.nix @@ -30,5 +30,9 @@ with pkgs; smartmontools gsmartcontrol parted + + # qml/qt6 + qt6.full + libclang ]; }