Fix qml themes

This commit is contained in:
outfoxxed 2024-01-02 03:36:10 -08:00
parent b222c15014
commit e086b08f45
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E

View file

@ -1,4 +1,4 @@
{ self, config, pkgs, ... }: {
{ self, lib, config, pkgs, ... }: {
environment.systemPackages = with pkgs; [
qt5ct
breeze-qt5
@ -6,8 +6,16 @@
breeze-icons
];
environment.variables = {
environment.variables = let
qmlPackages = with pkgs; [
plasma5Packages.qqc2-desktop-style
plasma5Packages.kirigami2
];
qtVersion = pkgs.qt515.qtbase.version;
in {
"QT_QPA_PLATFORMTHEME" = "qt5ct";
"QML2_IMPORT_PATH" = "${lib.concatStringsSep ":" (builtins.map (p: "${p}/lib/qt-${qtVersion}/qml") qmlPackages)}";
};
home-manager.users.${config.main-user} = {