I am trying to install sway/Wayland in NixOS 23.05 using Home-Manager (without flakes).
I would like to follow the wiki Sway - NixOS Wiki.
So I have set security.polkit.enable = true;
and added
wayland.windowManager.sway = { ... };
However, nixos-rebuild throws an exception:
building the system configuration...
error: The option `wayland' does not exist. Definition values:
- In `/etc/nixos/home.nix':
{
windowManager = {
...
But in the reference the option is mentioned:
https://rycee.gitlab.io/home-manager/options.html#opt-wayland.windowManager.sway.enable
What am I doing wrong?
Thanks for your advice.