1<chapter xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="sec-wayland">
2 <title>Wayland</title>
3 <para>
4 While X11 (see <xref linkend="sec-x11" />) is still the primary
5 display technology on NixOS, Wayland support is steadily improving.
6 Where X11 separates the X Server and the window manager, on Wayland
7 those are combined: a Wayland Compositor is like an X11 window
8 manager, but also embeds the Wayland 'Server' functionality. This
9 means it is sufficient to install a Wayland Compositor such as sway
10 without separately enabling a Wayland server:
11 </para>
12 <programlisting language="bash">
13programs.sway.enable = true;
14</programlisting>
15 <para>
16 This installs the sway compositor along with some essential
17 utilities. Now you can start sway from the TTY console.
18 </para>
19 <para>
20 If you are using a wlroots-based compositor, like sway, and want to
21 be able to share your screen, you might want to activate this
22 option:
23 </para>
24 <programlisting language="bash">
25xdg.portal.wlr.enable = true;
26</programlisting>
27 <para>
28 and configure Pipewire using
29 <xref linkend="opt-services.pipewire.enable" /> and related options.
30 </para>
31</chapter>