From 4d8b7c5bc8e6dd731c2b0b4a90adfdb912c010a5 Mon Sep 17 00:00:00 2001 From: elwrcl Date: Wed, 22 Apr 2026 19:27:31 +0300 Subject: [PATCH] updated hyprland.nix for xdg.portal Signed-off-by: elwrcl --- nixos/desktop/window-managers/hyprland.nix | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/nixos/desktop/window-managers/hyprland.nix b/nixos/desktop/window-managers/hyprland.nix index 2fb9ca7..3747072 100644 --- a/nixos/desktop/window-managers/hyprland.nix +++ b/nixos/desktop/window-managers/hyprland.nix @@ -16,8 +16,19 @@ xdg.portal = { enable = true; - extraPortals = [ inputs.hyprland.packages.${pkgs.system}.xdg-desktop-portal-hyprland ]; - config.common.default = "*"; + extraPortals = [ pkgs.xdg-desktop-portal-gtk ]; + config = { + common.default = "*"; + hyprland = { + default = [ + "hyprland" + "gtk" + ]; + "org.freedesktop.impl.portal.FileChooser" = [ "gtk" ]; + "org.freedesktop.impl.portal.Screenshot" = [ "hyprland" ]; + "org.freedesktop.impl.portal.ScreenCast" = [ "hyprland" ]; + }; + }; }; services = {