2021-07-03 05:38:06 -06:00
|
|
|
# Wayland {#sec-wayland}
|
|
|
|
|
|
|
|
While X11 (see [](#sec-x11)) 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
|
2022-12-21 13:24:48 -07:00
|
|
|
Wayland 'Server' functionality. This means it is sufficient to install
|
2021-07-03 05:38:06 -06:00
|
|
|
a Wayland Compositor such as sway without separately enabling a Wayland
|
|
|
|
server:
|
|
|
|
|
|
|
|
```nix
|
2024-03-27 12:10:27 -06:00
|
|
|
{
|
2021-07-03 05:38:06 -06:00
|
|
|
programs.sway.enable = true;
|
2024-03-27 12:10:27 -06:00
|
|
|
}
|
2021-07-03 05:38:06 -06:00
|
|
|
```
|
|
|
|
|
|
|
|
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
|
2024-10-21 06:00:47 -06:00
|
|
|
able to share your screen, make sure to configure Pipewire using
|
2021-07-03 18:24:44 -06:00
|
|
|
[](#opt-services.pipewire.enable)
|
2021-07-03 05:38:06 -06:00
|
|
|
and related options.
|
2022-07-13 23:26:00 -06:00
|
|
|
|
|
|
|
For more helpful tips and tricks, see the
|
|
|
|
[wiki page about Sway](https://wiki.nixos.org/wiki/Sway).
|