1
1
Fork 0

xdg: fix portal for gnome

Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
Myned 2024-09-09 19:00:59 -05:00
parent bf3637818b
commit 0dbce20189
Signed by: myned
GPG key ID: C7224454F7881A34
2 changed files with 12 additions and 6 deletions

View file

@ -1,6 +1,7 @@
{ {
config, config,
lib, lib,
pkgs,
... ...
}: }:
@ -23,6 +24,17 @@ in
# https://github.com/hyprwm/Hyprland # https://github.com/hyprwm/Hyprland
programs.hyprland.enable = true; 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 # https://wiki.hyprland.org
home-manager.users.${config.custom.username}.wayland.windowManager.hyprland = { home-manager.users.${config.custom.username}.wayland.windowManager.hyprland = {
enable = true; enable = true;

View file

@ -1,7 +1,6 @@
{ {
config, config,
lib, lib,
pkgs,
... ...
}: }:
@ -24,11 +23,6 @@ in
# https://wiki.archlinux.org/title/XDG_Desktop_Portal # https://wiki.archlinux.org/title/XDG_Desktop_Portal
xdg.portal = { xdg.portal = {
enable = true; enable = true;
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
config.common.default = [
"hyprland"
"gtk"
]; # Prefer hyprland over gtk portal
# Use portal for xdg-open # Use portal for xdg-open
# https://github.com/NixOS/nixpkgs/issues/160923 # https://github.com/NixOS/nixpkgs/issues/160923