nix/module/desktop/Portal.nix

22 lines
335 B
Nix

# Portals are needed for Wayland apps to select files, screen shares etc.
{ pkgs, ... }: {
xdg.portal = {
enable = true;
extraPortals = with pkgs; [
xdg-desktop-portal-gtk
];
config = {
common = {
default = [
"gtk"
"wlr"
];
};
};
wlr = {
enable = true;
};
xdgOpenUsePortal = false;
};
}