aboutsummaryrefslogtreecommitdiffstats
path: root/modules/desktop/xdg/default.nix
blob: c6ea71f4f6ec9ec5893d67c02cfe554824470a72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# XDG Desktop Portal configuration
{
  config,
  lib,
  pkgs,
  ...
}:
{
  config = lib.mkIf config.desktop.enable {
    xdg.portal = {
      enable = true;
      extraPortals = with pkgs; [
        xdg-desktop-portal-termfilechooser
        xdg-desktop-portal-hyprland
      ];
      config.common = {
        "org.freedesktop.impl.portal.FileChooser" = [ "termfilechooser" ];
        default = [ "hyprland" ];
      };
      xdgOpenUsePortal = true;
    };
  };
}