b98f9d8352
xdg-desktop-portal 1.20.1 added support for searching all directories in XDG_DATA_DIRS for portals: https://github.com/flatpak/xdg-desktop-portal/commit/bb37e260db3f91b93227cb559745468922ca29fd This made the NIX_XDG_DESKTOP_PORTAL_DIR patch redundant, since NixOS already ensures /run/current-system/sw/share is on XDG_DATA_DIRS. The patch also does not compose well: it hardcodes a single portal directory, so when both NixOS and home-manager set it, home-manager's value overwrote NixOS's, breaking portal discovery for anything only registered by NixOS (e.g. Cosmic alongside a home-manager-configured Hyprland).