{ pkgs, ... }: { xdg.portal.wlr.enable = true; programs.sway.extraConfig = '' exec ${pkgs.writeShellScript "sway-portal-environment" '' dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP systemctl --user stop pipewire pipewire-media-session xdg-desktop-portal xdg-desktop-portal-wlr systemctl --user start pipewire-media-session ''} ''; }