nix/config/Portal.nix

25 lines
422 B
Nix
Raw Permalink Normal View History

# Portals are needed for Wayland apps to select files, screen shares etc.
{
config,
lib,
pkgs,
...
}:
let
cfg = config.module.portal;
in
{
config = lib.mkIf cfg.enable {
xdg.portal = {
enable = true;
wlr.enable = true;
xdgOpenUsePortal = false;
extraPortals = with pkgs; [ xdg-desktop-portal-gtk ];
config.common.default = [
"gtk"
"wlr"
];
};
};
2024-03-28 12:01:06 +03:00
}