From 0dbce20189026046122f20b9abd644c8c567189f Mon Sep 17 00:00:00 2001 From: Myned Date: Mon, 9 Sep 2024 19:00:59 -0500 Subject: [PATCH] xdg: fix portal for gnome Signed-off-by: Myned --- options/custom/desktops/hyprland/default.nix | 12 ++++++++++++ options/custom/settings/xdg.nix | 6 ------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/options/custom/desktops/hyprland/default.nix b/options/custom/desktops/hyprland/default.nix index c834b6f..dfada53 100644 --- a/options/custom/desktops/hyprland/default.nix +++ b/options/custom/desktops/hyprland/default.nix @@ -1,6 +1,7 @@ { config, lib, + pkgs, ... }: @@ -23,6 +24,17 @@ in # https://github.com/hyprwm/Hyprland programs.hyprland.enable = true; + xdg.portal = { + enable = true; + extraPortals = [ pkgs.xdg-desktop-portal-gtk ]; + + # Prefer hyprland over gtk portal + config.common.default = [ + "hyprland" + "gtk" + ]; + }; + # https://wiki.hyprland.org home-manager.users.${config.custom.username}.wayland.windowManager.hyprland = { enable = true; diff --git a/options/custom/settings/xdg.nix b/options/custom/settings/xdg.nix index 9973f36..13d70e7 100644 --- a/options/custom/settings/xdg.nix +++ b/options/custom/settings/xdg.nix @@ -1,7 +1,6 @@ { config, lib, - pkgs, ... }: @@ -24,11 +23,6 @@ in # https://wiki.archlinux.org/title/XDG_Desktop_Portal xdg.portal = { enable = true; - extraPortals = [ pkgs.xdg-desktop-portal-gtk ]; - config.common.default = [ - "hyprland" - "gtk" - ]; # Prefer hyprland over gtk portal # Use portal for xdg-open # https://github.com/NixOS/nixpkgs/issues/160923