Fix qml themes
This commit is contained in:
parent
b222c15014
commit
e086b08f45
|
@ -1,4 +1,4 @@
|
||||||
{ self, config, pkgs, ... }: {
|
{ self, lib, config, pkgs, ... }: {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
qt5ct
|
qt5ct
|
||||||
breeze-qt5
|
breeze-qt5
|
||||||
|
@ -6,8 +6,16 @@
|
||||||
breeze-icons
|
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";
|
"QT_QPA_PLATFORMTHEME" = "qt5ct";
|
||||||
|
"QML2_IMPORT_PATH" = "${lib.concatStringsSep ":" (builtins.map (p: "${p}/lib/qt-${qtVersion}/qml") qmlPackages)}";
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager.users.${config.main-user} = {
|
home-manager.users.${config.main-user} = {
|
||||||
|
|
Loading…
Reference in a new issue