Skip to content

Commit

Permalink
qt: add temporary warnings for plasma6
Browse files Browse the repository at this point in the history
This adds temporary warnings when plasma6 is enabled and will be
replaced with actual handling of plasma6 when styling solutions are
added upstream.
Currently, this requires a manual work around that is only reasonable on
home-manager and not on NixOS. Users will be deferred to find
workarounds in the issue when they encounter this warning.
  • Loading branch information
Mikilio committed Feb 9, 2025
1 parent 7818098 commit 9de693a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/qt/hm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@

home.packages = lib.optional (config.qt.style.name == "kvantum") kvantumPackage;

qt = {
qt = lib.mkDefault {
enable = true;
style.name = recommendedStyle;
platformTheme.name = config.stylix.targets.qt.platform;
Expand Down
5 changes: 4 additions & 1 deletion modules/qt/nixos.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ in
};

config = lib.mkIf (config.stylix.enable && config.stylix.targets.qt.enable) {
warnings = lib.mkIf config.services.xserver.desktopManager.plasma6.enable [
"Styling of Plasma6 is not yet supported upstream. See https://github.com/nix-community/home-manager/issues/5098"
];
stylix.targets.qt.platform =
with config.services.xserver.desktopManager;
if gnome.enable && !(plasma5.enable || lxqt.enable) then
Expand All @@ -38,7 +41,7 @@ in
lib.mkDefault "lxqt"
else
lib.mkDefault "qtct";
qt = {
qt = lib.mkDefault {
enable = true;
style = recommendedStyle."${config.qt.platformTheme}" or null;
platformTheme =
Expand Down

0 comments on commit 9de693a

Please sign in to comment.