mirror of
https://github.com/nix-community/home-manager
synced 2024-12-24 02:39:48 +01:00
qt: allow usage without setting platformTheme
This commit is contained in:
parent
55eee5bd67
commit
1e80a0b3d8
1 changed files with 3 additions and 3 deletions
|
@ -173,7 +173,7 @@ in {
|
|||
+ (makeQtPath "qtQmlPrefix");
|
||||
};
|
||||
|
||||
in lib.mkIf (cfg.enable && cfg.platformTheme != null) {
|
||||
in lib.mkIf cfg.enable {
|
||||
assertions = [{
|
||||
assertion = cfg.platformTheme == "gnome" -> cfg.style.name != null
|
||||
&& cfg.style.package != null;
|
||||
|
@ -206,8 +206,8 @@ in {
|
|||
++ lib.optionals (cfg.style.package != null)
|
||||
(lib.toList cfg.style.package);
|
||||
|
||||
xsession.importedVariables =
|
||||
[ "QT_QPA_PLATFORMTHEME" "QT_PLUGIN_PATH" "QML2_IMPORT_PATH" ]
|
||||
xsession.importedVariables = [ "QT_PLUGIN_PATH" "QML2_IMPORT_PATH" ]
|
||||
++ lib.optionals (cfg.platformTheme != null) [ "QT_QPA_PLATFORMTHEME" ]
|
||||
++ lib.optionals (cfg.style.name != null) [ "QT_STYLE_OVERRIDE" ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue