1
Fork 0
satellite/hosts/nixos/common/optional/desktop/xdg-portal.nix
2024-01-04 20:35:10 +01:00

15 lines
406 B
Nix

{ pkgs, ... }: {
services.dbus.enable = true;
xdg.portal = {
enable = true;
xdgOpenUsePortal = true;
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
};
environment.systemPackages = [ pkgs.xdg-utils ];
# HACK: copied from @lily on discord.
# systemd.user.services.xdg-desktop-portal.path = lib.mkAfter [ "/run/current-system/sw" ];
# services.gnome.at-spi2-core.enable = true;
}