{ config, lib, pkgs, ... }: { xdg.portal.extraPortals = with pkgs; lib.mkIf config.system.desktop.enable [ xdg-desktop-portal-gnome xdg-desktop-portal-wlr ]; }