{ config, lib, ... }:
{
  config = lib.mkIf config.system.desktop.enable {
    programs = {
      sway.enable = true;
      niri.enable = true;
      xwayland.enable = lib.mkForce true;
    };

    environment.sessionVariables.WLR_RENDERER = "vulkan";

    services.dbus.enable = true;
    security.pam.services.swaylock = {};
  };
}
