27 lines
466 B
Nix
27 lines
466 B
Nix
# Portals are needed for Wayland apps to select files, screen shares etc.
|
|
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
cfg = config.module.portal;
|
|
in {
|
|
options.module.portal.enable = lib.mkEnableOption "the portals.";
|
|
|
|
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"
|
|
];
|
|
};
|
|
};
|
|
}
|