1# Wayland {#sec-wayland} 2 3While X11 (see [](#sec-x11)) is still the primary display technology 4on NixOS, Wayland support is steadily improving. Where X11 separates the 5X Server and the window manager, on Wayland those are combined: a 6Wayland Compositor is like an X11 window manager, but also embeds the 7Wayland 'Server' functionality. This means it is sufficient to install 8a Wayland Compositor such as sway without separately enabling a Wayland 9server: 10 11```nix 12{ programs.sway.enable = true; } 13``` 14 15This installs the sway compositor along with some essential utilities. 16Now you can start sway from the TTY console. 17 18If you are using a wlroots-based compositor, like sway, and want to be 19able to share your screen, make sure to configure Pipewire using 20[](#opt-services.pipewire.enable) 21and related options. 22 23For more helpful tips and tricks, see the 24[wiki page about Sway](https://wiki.nixos.org/wiki/Sway).