summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-06-27 16:43:58 -0400
committerFreya Murphy <freya@freyacat.org>2025-06-27 16:43:58 -0400
commitf250dda0b8df0e37453eb3e70f52b31ff05ae4cf (patch)
treeaa0a771d00512e55ea6d9202528ca77ad283fecc
parentfmt (diff)
downloaddotfiles-nix-f250dda0b8df0e37453eb3e70f52b31ff05ae4cf.tar.gz
dotfiles-nix-f250dda0b8df0e37453eb3e70f52b31ff05ae4cf.tar.bz2
dotfiles-nix-f250dda0b8df0e37453eb3e70f52b31ff05ae4cf.zip
fix xdg.portal after refactor
-rw-r--r--modules/desktops/hyprland/default.nix3
-rw-r--r--modules/desktops/wayland.nix9
2 files changed, 9 insertions, 3 deletions
diff --git a/modules/desktops/hyprland/default.nix b/modules/desktops/hyprland/default.nix
index cc1122c..56eef35 100644
--- a/modules/desktops/hyprland/default.nix
+++ b/modules/desktops/hyprland/default.nix
@@ -25,6 +25,9 @@ in {
extraPortals = [
inputs.hyprland.packages.${system}.xdg-desktop-portal-hyprland
];
+ config = {
+ hyprland.common = ["gtk" "hyprland"];
+ };
};
home-manager.users.${config.user} = {
diff --git a/modules/desktops/wayland.nix b/modules/desktops/wayland.nix
index ceef20a..600651f 100644
--- a/modules/desktops/wayland.nix
+++ b/modules/desktops/wayland.nix
@@ -10,10 +10,13 @@ in {
config = mkIf cfg.wayland {
xdg.portal = {
enable = true;
- wlr.enable = true;
- extraPortals = [
- pkgs.xdg-desktop-portal-wlr
+ xdgOpenUsePortal = true;
+ extraPortals = with pkgs; [
+ xdg-desktop-portal-gtk
];
+ config = {
+ default.common = ["gtk"];
+ };
};
programs.xwayland.enable = true;