{ config, lib, pkgs, ... }: { # Disable X11 for Wayland-only setup services.xserver.enable = false; # Enable Niri programs.niri = { enable = true; }; # XDG portal for Wayland xdg.portal = { enable = true; extraPortals = with pkgs; [ xdg-desktop-portal-gtk xdg-desktop-portal-gnome ]; }; # Required Wayland packages environment.systemPackages = with pkgs; [ qt6.qtwayland qt6.qttools ]; # Provide keyboard layout vars for Wayland environments and fallback environment.variables = { XKB_DEFAULT_LAYOUT = "cz"; XKB_DEFAULT_OPTIONS = "eurosign:e,caps:escape"; }; # Make Electron apps work on Wayland environment.sessionVariables.NIXOS_OZONE_WL = "1"; }