From f03809bcb6836a15d313501f90b82baf9e1e7997 Mon Sep 17 00:00:00 2001 From: elwrcl Date: Wed, 22 Apr 2026 17:43:32 +0300 Subject: [PATCH] test Signed-off-by: elwrcl --- home/hypr/hyprland/env.nix | 1 + nixos/desktop/window-managers/hyprland.nix | 17 ++--------------- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/home/hypr/hyprland/env.nix b/home/hypr/hyprland/env.nix index d4b7ca4..b3b15aa 100644 --- a/home/hypr/hyprland/env.nix +++ b/home/hypr/hyprland/env.nix @@ -16,6 +16,7 @@ "TERMINAL,ghostty" "MESA_GL_VERSION_OVERRIDE,4.6" "MESA_GLSL_VERSION_OVERRIDE,460" + "GTK_USE_PORTAL,1" ]; }; } diff --git a/nixos/desktop/window-managers/hyprland.nix b/nixos/desktop/window-managers/hyprland.nix index 3276621..2fb9ca7 100644 --- a/nixos/desktop/window-managers/hyprland.nix +++ b/nixos/desktop/window-managers/hyprland.nix @@ -16,21 +16,8 @@ xdg.portal = { enable = true; - xdgOpenUsePortal = true; - extraPortals = [ pkgs.xdg-desktop-portal-cosmic ]; - config = { - common.default = [ "cosmic" ]; - hyprland = { - default = [ - "hyprland" - "cosmic" - ]; - "org.freedesktop.impl.portal.FileChooser" = "cosmic"; - "org.freedesktop.impl.portal.ScreenCast" = "hyprland"; - "org.freedesktop.impl.portal.Screenshot" = "hyprland"; - "org.freedesktop.impl.portal.OpenURI" = "cosmic"; - }; - }; + extraPortals = [ inputs.hyprland.packages.${pkgs.system}.xdg-desktop-portal-hyprland ]; + config.common.default = "*"; }; services = {