KDE: Difference between revisions
m Replace `services.xserver.displayManager` with `services.displayManager` |
|||
Line 30: | Line 30: | ||
{{ic|sddm}} launches X11 as a root user by default. For better security, X11 can be run as a non-root user, but using Wayland is better tested and thus preferred: | {{ic|sddm}} launches X11 as a root user by default. For better security, X11 can be run as a non-root user, but using Wayland is better tested and thus preferred: | ||
< | <syntaxhighlight lang="nix"> | ||
services | services.displayManager.sddm.settings.General.DisplayServer = "x11-user"; | ||
</ | </syntaxhighlight> | ||
=== Excluding applications from the default install === | === Excluding applications from the default install === | ||
Line 97: | Line 97: | ||
Plasma 6 runs on Wayland by default. To launch an X11 session by default: | Plasma 6 runs on Wayland by default. To launch an X11 session by default: | ||
< | <syntaxhighlight lang="nix"> | ||
services | services.displayManager.defaultSession = "plasmax11"; | ||
</ | </syntaxhighlight> | ||
==== SDDM on Wayland ==== | ==== SDDM on Wayland ==== | ||
< | <syntaxhighlight lang="nix"> | ||
services | services.displayManager.sddm.wayland.enable = true; | ||
</ | </syntaxhighlight> | ||
==== Plasma 5 ==== | ==== Plasma 5 ==== | ||
Line 111: | Line 111: | ||
Plasma 5 runs on X11 by default and it is recommended to use Wayland with Plasma 6 instead. To launch a Wayland session by default anyway: | Plasma 5 runs on X11 by default and it is recommended to use Wayland with Plasma 6 instead. To launch a Wayland session by default anyway: | ||
< | <syntaxhighlight lang="nix"> | ||
services | services.displayManager.defaultSession = "plasmawayland"; | ||
</ | </syntaxhighlight> | ||
== Troubleshooting == | == Troubleshooting == |