From 1a0eacae6a3a2c2903064c9774bdc871ccc0f550 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?m=C3=BCde?= Date: Wed, 15 Jul 2026 22:57:26 +0200 Subject: [PATCH] choom pls fix polkit auth --- homeConfigurations/muede/niri.nix | 16 ++++++++++++---- nixosModules/stylix.nix | 3 +++ 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/homeConfigurations/muede/niri.nix b/homeConfigurations/muede/niri.nix index 73b97d9..9fe1c66 100644 --- a/homeConfigurations/muede/niri.nix +++ b/homeConfigurations/muede/niri.nix @@ -11,10 +11,18 @@ xwayland-satellite ]; - qt.style = { - package = pkgs.adwaita-qt; - name = "adwaita-dark"; - }; + # Qt theming (QT_STYLE_OVERRIDE) is deliberately disabled, here and in + # nixosModules/stylix.nix. Qt >= 6.5 resolves QT_STYLE_OVERRIDE as a + # Qt Quick Controls style and crashes any QML app when no such QML module + # exists: with QT_STYLE_OVERRIDE=adwaita-dark, polkit-kde-agent segfaulted + # on every auth request, breaking polkit under niri. adwaita-qt only ships + # a Qt5 widget style (archived upstream), so Qt6 apps never got themed + # anyway. If a specific Qt5 app needs the style back, set it per app: + # QT_STYLE_OVERRIDE=adwaita-dark + # or for a systemd unit: Environment=QT_STYLE_OVERRIDE=adwaita-dark. + # A future alternative is stylix's qtct/kvantum platform, once + # https://github.com/nix-community/home-manager/issues/6565 is resolved. + stylix.targets.qt.enable = false; services.wpaperd.enable = true; diff --git a/nixosModules/stylix.nix b/nixosModules/stylix.nix index 4b30dc7..6ceec1b 100644 --- a/nixosModules/stylix.nix +++ b/nixosModules/stylix.nix @@ -68,6 +68,9 @@ gtksourceview.enable = false; fontconfig.enable = true; plymouth.enable = false; + # Sets QT_STYLE_OVERRIDE system-wide, which crashes Qt6 QML apps + # (e.g. polkit-kde-agent) — see homeConfigurations/muede/niri.nix. + qt.enable = false; }; fonts = { sansSerif = {