feat: add xdg-desktop-portal

This commit is contained in:
Youwen Wu 2024-08-10 18:51:56 -07:00
parent fed385b023
commit 45922f8770
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3

View file

@ -1,3 +1,4 @@
{ pkgs, ... }:
{
wayland.windowManager.hyprland = {
enable = true;
@ -286,4 +287,10 @@
"hyprctl dispatch dpms on"; # to avoid having to press a key twice to turn on the display.
};
};
xdg.portal = {
enable = true;
configPackages = [ pkgs.xdg-desktop-portal-hyprland ];
extraPortals = [ pkgs.xdg-desktop-portal-hyprland ];
};
}