nix-community / home-manager

Manage a user environment using Nix [maintainer=@rycee]
https://nix-community.github.io/home-manager/
MIT License
7.1k stars 1.83k forks source link

bug: `qt.platformTheme == "kde"` breaks KDE Plasma 6 System Settings #5098

Open NovaViper opened 8 months ago

NovaViper commented 8 months ago

Are you following the right branch?

Is there an existing issue for this?

Issue description

If I set qt.platformTheme to "kde", it installs all of the packages meant for KDE Plasma 5; which works fine on Plasma 5 but it completely breaks Plasma 6 (it makes many core system settings disappear from the System Settings app, like the Display Configuration and more). there should be an option for KDE Plasma 6 so it can install the packages under kdePackages (which is where all of the Plasma6/QT6 packages are coming from) instead of libsForQt5.

Maintainer CC

@rycee @thiagokokada

System information

❯ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.7.7, NixOS, 24.05 (Uakari), 24.05.20240303.768bb87`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.1`
 - nixpkgs: `/nix/store/l5xja2y73b785kppa8glplaw3r584gvh-source`
muggenhor commented 5 months ago

I experienced the same issue after just upgrading to nixos-24.05 (and going from services.xserver.desktopManager.plasma5.enable to services.desktopManager.plasma6.enable in the process).

For now I've set qt.enable = false in my Home Manager config and the System Settings app has become usable again.

stale[bot] commented 2 months ago

Thank you for your contribution! I marked this issue as stale due to inactivity. Please be considerate of people watching this issue and receiving notifications before commenting 'I have this issue too'. We welcome additional information that will help resolve this issue. Please read the relevant sections below before commenting.

If you are the original author of the issue

* If this is resolved, please consider closing it so that the maintainers know not to focus on this. * If this might still be an issue, but you are not interested in promoting its resolution, please consider closing it while encouraging others to take over and reopen an issue if they care enough. * If you know how to solve the issue, please consider submitting a Pull Request that addresses this issue.

If you are not the original author of the issue

* If you are also experiencing this issue, please add details of your situation to help with the debugging process. * If you know how to solve the issue, please consider submitting a Pull Request that addresses this issue.

Memorandum on closing issues

Don't be afraid to manually close an issue, even if it holds valuable information. Closed issues stay in the system for people to search, read, cross-reference, or even reopen – nothing is lost! Closing obsolete issues is an important way to help maintainers focus their time and effort.

Rayzeq commented 2 months ago

This issue is still present. For those searching for a workaround, here is my config before the issue:

qt = {
    enable = true;
    platformTheme.name = "kde";
    style.name = "Breeze";
}

and after:

# Technically not related to this issue, but still useful
xdg.configFile."menus/applications.menu".source = "${pkgs.kdePackages.plasma-workspace}/etc/xdg/menus/plasma-applications.menu";

qt = {
    enable = true;
    platformTheme.package = with pkgs.kdePackages; [
        plasma-integration
        # I don't remember why I put this is here, maybe it fixes the theme of the system setttings
        systemsettings
    ];
    style = {
        package = pkgs.kdePackages.breeze;
        name = "Breeze";
    };
};
systemd.user.sessionVariables = { QT_QPA_PLATFORMTHEME = "kde"; };