KDE: Difference between revisions

Writer (talk | contribs)
Eljamm (talk | contribs)
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>
<syntaxhighlight lang="nix">
services.xserver.displayManager.sddm.settings.General.DisplayServer = "x11-user";
services.displayManager.sddm.settings.General.DisplayServer = "x11-user";
</syntaxHighlight>
</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>
<syntaxhighlight lang="nix">
services.xserver.displayManager.defaultSession = "plasmax11";
services.displayManager.defaultSession = "plasmax11";
</syntaxHighlight>
</syntaxhighlight>


==== SDDM on Wayland ====
==== SDDM on Wayland ====


<syntaxHighlight lang=nix>
<syntaxhighlight lang="nix">
services.xserver.displayManager.sddm.wayland.enable = true;
services.displayManager.sddm.wayland.enable = true;
</syntaxHighlight>
</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>
<syntaxhighlight lang="nix">
services.xserver.displayManager.defaultSession = "plasmawayland";
services.displayManager.defaultSession = "plasmawayland";
</syntaxHighlight>
</syntaxhighlight>


== Troubleshooting ==
== Troubleshooting ==