From 47d7d5b11e632bbd789e231d3b26f57b2c5c32fa Mon Sep 17 00:00:00 2001 From: mjallen18 Date: Thu, 26 Mar 2026 09:38:38 -0500 Subject: [PATCH] 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 --- modules/home/desktop/plasma/default.nix | 6 +++++- modules/home/stylix/default.nix | 8 ++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/modules/home/desktop/plasma/default.nix b/modules/home/desktop/plasma/default.nix index eb31c4e..022f0b9 100644 --- a/modules/home/desktop/plasma/default.nix +++ b/modules/home/desktop/plasma/default.nix @@ -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 diff --git a/modules/home/stylix/default.nix b/modules/home/stylix/default.nix index ef26457..5cb65eb 100644 --- a/modules/home/stylix/default.nix +++ b/modules/home/stylix/default.nix @@ -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 = [