summaryrefslogtreecommitdiff
path: root/system/desktops/wayland.nix
blob: 8a81fdf7afa9f8c7fbe35d2b527f2a18c52da151 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
  lib,
  config,
  pkgs,
  ...
}: let
  inherit (lib) mkIf;
  cfg = config.desktops.wayland;
in {
  config = mkIf cfg.enable {
    xdg.portal = {
      enable = true;
      xdgOpenUsePortal = true;
      extraPortals = with pkgs; [
        xdg-desktop-portal-gtk
      ];
      config = {
        default.common = ["gtk"];
      };
    };

    programs.xwayland.enable = true;
  };
}