{
  config,
  lib,
  ...
}: {
  imports = [
    ../../inputs/home-manager/services/dunst
    ../../inputs/home-manager/services/swayidle
  ];

  options.dotfiles.internal.wayland.enable = lib.dotfiles.mkEnableOption;

  config = lib.mkIf config.dotfiles.internal.wayland.enable {
    dotfiles.inputs.home-manager.services = {
      dunst.enable = true;
      swayidle.enable = true;
    };

    home.sessionVariables = {
      NIXOS_OZONE_WL = 1;
      QT_QPA_PLATFORM = "wayland;xcb";
    };
  };
}
