# xdg - 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-gtk ]; config.common = { default = [ "gtk" ]; "org.freedesktop.impl.portal.FileChooser" = [ "termfilechooser" ]; }; xdgOpenUsePortal = true; }; }; }