nixcfg/hosts/common/services/xdgportal.nix
nomadics9 16170bdebc init
2024-10-06 19:48:10 +03:00

25 lines
489 B
Nix

{ config
, lib
, pkgs
, ...
}:
with lib; let
cfg = config.common.services.xdgportal;
in
{
options.common.services.xdgportal.enable = mkEnableOption "XDG Extra portal";
config = mkIf cfg.enable {
xdg.portal = {
enable = true;
xdgOpenUsePortal = false;
# gtkUsePortal = true;
extraPortals = with pkgs; [
xdg-desktop-portal-gtk
# xdg-desktop-portal-hyprland
# xdg-desktop-portal-wlr
];
# wlr.enable = true;
};
};
}