From 45922f8770975c5109a46899ce7cbeec2969e1ae Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Sat, 10 Aug 2024 18:51:56 -0700 Subject: [PATCH] feat: add xdg-desktop-portal --- users/youwen/linux/hyprland/common.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/users/youwen/linux/hyprland/common.nix b/users/youwen/linux/hyprland/common.nix index 44f2a4b..3bebef6 100644 --- a/users/youwen/linux/hyprland/common.nix +++ b/users/youwen/linux/hyprland/common.nix @@ -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 ]; + }; }