nix-da/modules/portals.nix
2025-03-16 20:02:11 +01:00

22 lines
419 B
Nix

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