nixpkgs/nixos/doc/manual/configuration/wayland.chapter.md
Aaron Hall, MBA f295624943
nixos/doc/configuration/wayland: add link to Sway wiki page
Co-authored-by: teutat3s <10206665+teutat3s@users.noreply.github.com>
2024-10-21 18:19:40 +02:00

990 B

Wayland

While X11 (see ) is still the primary display technology on NixOS, Wayland support is steadily improving. Where X11 separates the X Server and the window manager, on Wayland those are combined: a Wayland Compositor is like an X11 window manager, but also embeds the Wayland 'Server' functionality. This means it is sufficient to install a Wayland Compositor such as sway without separately enabling a Wayland server:

{
programs.sway.enable = true;
}

This installs the sway compositor along with some essential utilities. Now you can start sway from the TTY console.

If you are using a wlroots-based compositor, like sway, and want to be able to share your screen, you might want to activate this option:

{
  xdg.portal.wlr.enable = true;
}

and configure Pipewire using and related options.

For more helpful tips and tricks, see the wiki page about Sway.