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