From 098d64f16893d5a883205ed532ccbf0fc463207e Mon Sep 17 00:00:00 2001 From: elwrcl Date: Sun, 19 Apr 2026 01:01:35 +0300 Subject: [PATCH] changed hyprland portal Signed-off-by: elwrcl --- nixos/desktop/window-managers/hyprland.nix | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/nixos/desktop/window-managers/hyprland.nix b/nixos/desktop/window-managers/hyprland.nix index 09ba2d4..89b5f35 100644 --- a/nixos/desktop/window-managers/hyprland.nix +++ b/nixos/desktop/window-managers/hyprland.nix @@ -9,11 +9,18 @@ xdg.portal = { enable = true; xdgOpenUsePortal = true; - extraPortals = [ pkgs.xdg-desktop-portal-gtk ]; + extraPortals = with pkgs; [ + xdg-desktop-portal-hyprland + xdg-desktop-portal-gtk + ]; config.hyprland = lib.mkForce { - default = "gtk"; - "org.freedesktop.impl.portal.Screenshot" = "hyprland"; - "org.freedesktop.impl.portal.ScreenCast" = "hyprland"; + default = [ + "hyprland" + "gtk" + ]; + "org.freedesktop.impl.portal.Screenshot" = [ "hyprland" ]; + "org.freedesktop.impl.portal.ScreenCast" = [ "hyprland" ]; + "org.freedesktop.impl.portal.FileChooser" = [ "gtk" ]; }; }; @@ -31,7 +38,6 @@ }; security.polkit.enable = true; - environment.systemPackages = with pkgs; [ glib dconf