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 ]; + }; }