KDE: Difference between revisions

Sdht0 (talk | contribs)
Add Tips and tricks section
Sdht0 (talk | contribs)
Copy edit and reorder sections
Line 69: Line 69:


For more details, see [https://discourse.nixos.org/t/guide-to-installing-qt-theme/35523/2 this] forum post.
For more details, see [https://discourse.nixos.org/t/guide-to-installing-qt-theme/35523/2 this] forum post.
=== Wayland/X11 session ===
==== Plasma 5 ====
Plasma 6 runs on X11 by default. To launch wayland:
<syntaxHighlight lang=nix>
services.xserver.displayManager.defaultSession = "plasmawayland";
</syntaxHighlight>
==== Plasma 6 ====
Plasma 6 runs on Wayland by default. To launch X11:
<syntaxHighlight lang=nix>
services.xserver.displayManager.defaultSession = "plasmax11";
</syntaxHighlight>
==== SDDM in Wayland ====
<syntaxHighlight lang=nix>
services.xserver.displayManager.sddm.wayland.enable = true;
</syntaxHighlight>


== Troubleshooting ==
== Troubleshooting ==
Line 104: Line 127:


[https://github.com/NixOS/nixpkgs/issues/160599 (See this issue)]
[https://github.com/NixOS/nixpkgs/issues/160599 (See this issue)]
=== Launch KDE in Wayland session ===
==== Plasma 5 ====
<syntaxHighlight lang=nix>
services.xserver.displayManager.defaultSession = "plasmawayland";
</syntaxHighlight>
==== Plasma 6 ====
For KDE Plasma 6, the defaults have changed. KDE Plasma 6 runs on Wayland with the default session set to <code>plasma</code>.
If you want to use the X11 session as your default session, change it to <code>plasmax11</code>.
<syntaxHighlight lang=nix>
services.xserver.displayManager.defaultSession = "plasma";
</syntaxHighlight>
==== Launch SDDM in Wayland too ====
It's possible to launch sddm in Wayland too to try to avoid running an X server.
<syntaxHighlight lang=nix>
services.xserver.displayManager.sddm.wayland.enable = true;
</syntaxHighlight>


== Tips and tricks ==
== Tips and tricks ==