summary refs log tree commit diff
path: root/nixos/modules/config
diff options
context:
space:
mode:
authorGabriel Fontes <hi@m7.rs>2023-07-26 14:55:03 -0300
committerGabriel Fontes <hi@m7.rs>2023-07-27 15:39:30 -0300
commitff8b69941a5e4138e4da553b54dbf44a326a2bdf (patch)
tree756155b26f36949db5d73fa499a279891bdbaf3f /nixos/modules/config
parent415cd9298ded0f9454de1ac5abcbc899be34618b (diff)
downloadnixpkgs-ff8b69941a5e4138e4da553b54dbf44a326a2bdf.tar
nixpkgs-ff8b69941a5e4138e4da553b54dbf44a326a2bdf.tar.gz
nixpkgs-ff8b69941a5e4138e4da553b54dbf44a326a2bdf.tar.bz2
nixpkgs-ff8b69941a5e4138e4da553b54dbf44a326a2bdf.tar.lz
nixpkgs-ff8b69941a5e4138e4da553b54dbf44a326a2bdf.tar.xz
nixpkgs-ff8b69941a5e4138e4da553b54dbf44a326a2bdf.tar.zst
nixpkgs-ff8b69941a5e4138e4da553b54dbf44a326a2bdf.zip
nixos/qt: install qt6gtk2 when using gtk2
Now qt6 apps are correctly themed when using platformTheme gtk2.
Diffstat (limited to 'nixos/modules/config')
-rw-r--r--nixos/modules/config/qt.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/config/qt.nix b/nixos/modules/config/qt.nix
index cf4e9621d70..2b09281e467 100644
--- a/nixos/modules/config/qt.nix
+++ b/nixos/modules/config/qt.nix
@@ -19,7 +19,7 @@ let
       pkgs.qgnomeplatform-qt6
       pkgs.adwaita-qt6
     ]
-    else if isQtStyle then [ pkgs.libsForQt5.qtstyleplugins ]
+    else if isQtStyle then [ pkgs.libsForQt5.qtstyleplugins pkgs.qt6Packages.qt6gtk2 ]
     else if isQt5ct then [ pkgs.libsForQt5.qt5ct pkgs.qt6Packages.qt6ct ]
     else if isLxqt then [ pkgs.lxqt.lxqt-qtplugin pkgs.lxqt.lxqt-config ]
     else if isKde then [ pkgs.libsForQt5.plasma-integration pkgs.libsForQt5.systemsettings ]
@@ -86,6 +86,7 @@ in
           "adwaita-qt"
           "adwaita-qt6"
           ["libsForQt5" "qtstyleplugins"]
+          ["qt6Packages" "qt6gtk2"]
         ];
         description = lib.mdDoc ''
           Selects the style to use for Qt applications.