xdg: fix portal for gnome
Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
parent
bf3637818b
commit
0dbce20189
2 changed files with 12 additions and 6 deletions
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue