Enable Plasma 6

Here is a short guide on how to switch from Plasma 5 to Plasma 6:

(You can always rollback to your old configuration)

First, run:

sudo nix-channel --add https://nixos.org/channels/nixos-unstable nixos

Now, the output of sudo nix-channel --list should look like this:


In case you have other channels, because you added some prior, it might look like that:

In that case, remove all channels other than the first, called nixos.
Delete the unstable channel in the example via:

sudo nix-channel --remove unstable

Second:

Edit the configuration file:
kwrite admin:///etc/nixos/configuration.nix

If you have any unstable.packagename in your configuration, remove the unstable part.
It gets in your way at build time. :slight_smile:

Kate is preinstalled now (hurrayy :tada:) and also stuff like kio-extras is now included implicitly.
So remove them entirely, if you have them defined.

Set all KDE packages to the new prefix kdePackages.
Example: kdePackages.kdenlive

If there is no version with this prefix available, you can use one without it.

Another group of packages that can cause some issues is the libsForQt5 group.
If these packages are now available with the kdePackages prefix, apply that one.

Third:

Finally, change
services.xserver.desktopManager.plasma5.enable = true; into
services.desktopManager.plasma6.enable = true; and add the line:

services.xserver.displayManager.sddm.wayland.enable = true;

Now run an update:

sudo nix-channel --update

And then finally build:

sudo nixos-rebuild switch

After restarting your machine, you should be in Plasma 6.
Comment for each issue, you encounter. :sun_with_face:

5 Likes

Thank you for this article! Everything is fine!
Can you please edit this line for displayManager =)

Thanks a lot, got it! :smile_cat:

will plasma 6 be available in stable before 24.05 or will be waiting for that? Happy to wait if so

1 Like

It will not be available in 23.11 to my knowledge.
The rollback is possible with no problem.

So you can simply try it, and if any issues occur, you go back.
Please report about your experience :slightly_smiling_face:

The problem I am facing after installing Plasma6 is that the apps aren’t being added to the app menu (they can still be ran if I type the package name)

UPDATE: The app menu now shows all the installed app after I set my default email app to Thunderbird

UPDATE: After experimenting a bit, I am able to force refresh by right-clicking the app menu icon > Edit Applications. Click edit then “Restore to system menu” and then CTRL+S and CTRL+Q (didn’t fix it at all)

1 Like
1 Like

Just make an update. kcmutils was missing

it’s less enabling Plasma6 instead changing channel to unstable, incl.

  • changing prefixes
  • changing options
  • deleting old options
  • broken packages
  • issues like Fontconfig
    (- even sddm seems currently broken …)

How can you “roll back” (without to change everything back in your config to make other changes again)?

Even so specialisation are nice but they seem to only work within one channel?

1 Like

I am simply able to go back to the last generation that uses Plasma 5.

This guide worked out for me on a fresh NixOS install. I was also able to rollback to the previous 23.11 with plasma 5 via the saved generations in the boot entry.

1 Like

qtspeech is now installed as a dependency of kcmutils. I didn’t find an option to override plasma6 to remove qtspeech.

Do you know how to remove it?

I recommend you to open a bug report on Github. :slightly_smiling_face:
qtspeech might simply be a dependency now, and the devs know best.

Can I also just use the necessary modules from unstable and keep the rest of my system on stable?

1 Like

No, not really.

Unstable is, unlike its name suggests, very stable :+1:

You can use it productive, and quite a couple people do so.

found this nixos option environment.plasma6.excludePackages

1 Like

But do you know about 24.05?