nix-da/modules/portals.nix

22 lines
422 B
Nix

{
lib,
config,
pkgs,
...
}:
lib.mkIf config.xdg.portal.enable {
xdg.portal = {
config = {
sway = {
"org.freedesktop.impl.portal.Screenshot.PickColor" = [ "${pkgs.hyprpicker}/bin/hyprpicker" ];
};
common.default = "*";
};
# gtk portal needed to make gtk apps happy
extraPortals = with pkgs; [
xdg-desktop-portal-gtk
xdg-desktop-portal-hyprland
];
};
}