fix plasma: disable stylix qt target and set widgetStyle=Breeze

Stylix's qt target sets QT_STYLE_OVERRIDE=kvantum and writes qt6ct/qt5ct
configs with style=kvantum. plasmashell/KWin crash with a fatal
'module kvantum is not installed' QML error because the kvantum Qt style
plugin is not available in the Plasma session.

- stylix: targets.qt.enable = false (stops QT_STYLE_OVERRIDE=kvantum)
- plasma: remove kvantum package, add widgetStyle=Breeze as belt-and-suspenders
This commit is contained in:
mjallen18
2026-03-26 09:38:38 -05:00
parent e119ffaabb
commit 47d7d5b11e
2 changed files with 13 additions and 1 deletions

View File

@@ -15,7 +15,6 @@ in
home.packages = with pkgs.kdePackages; [
plasma-browser-integration
kdeplasma-addons
kvantum
];
programs.plasma = {
@@ -30,6 +29,11 @@ in
iconTheme = "breeze-dark";
theme = "breeze-dark";
lookAndFeel = "org.kde.breezedark.desktop";
# Explicitly set Breeze to prevent QT_STYLE_OVERRIDE=kvantum (set by
# Stylix's qt6ct target) from being picked up by KWin/plasmashell, which
# would cause a fatal "module kvantum is not installed" QML error and
# leave the desktop blank.
widgetStyle = "Breeze";
};
# input.mice and input.touchpads require device-specific vendorId/productId

View File

@@ -101,6 +101,14 @@ in
useWallpaper = false;
};
kde.enable = false;
# Disable Stylix Qt theming (qt6ct/qt5ct + kvantum). When enabled, Stylix
# sets QT_STYLE_OVERRIDE=kvantum and writes qt6ct/qt5ct configs with
# style=kvantum. Plasma's plasmashell/KWin crash with a fatal
# "module kvantum is not installed" QML error because the kvantum Qt style
# plugin is not available. The Plasma home module sets widgetStyle=Breeze
# to counteract this, but disabling the source of the problem here is
# simpler and avoids the issue for all desktops.
qt.enable = false;
firefox = {
enable = false;
profileNames = [