diff options
Diffstat (limited to '')
-rw-r--r-- | system/desktops/hyprland.nix | 6 | ||||
-rw-r--r-- | system/desktops/sway.nix | 8 | ||||
-rw-r--r-- | system/desktops/wayland.nix | 6 |
3 files changed, 12 insertions, 8 deletions
diff --git a/system/desktops/hyprland.nix b/system/desktops/hyprland.nix index 91170bd..eb0778e 100644 --- a/system/desktops/hyprland.nix +++ b/system/desktops/hyprland.nix @@ -15,8 +15,10 @@ in { extraPortals = [ inputs.hyprland.packages.${pkgs.system}.xdg-desktop-portal-hyprland ]; - config = { - hyprland.common = ["gtk" "hyprland"]; + config.hyprland = { + default = ["hyprland" "gtk"]; + "org.freedesktop.impl.portal.FileChooser" = ["gtk"]; + "org.freedesktop.impl.portal.OpenURI" = ["gtk"]; }; }; diff --git a/system/desktops/sway.nix b/system/desktops/sway.nix index 622d54c..bb6d535 100644 --- a/system/desktops/sway.nix +++ b/system/desktops/sway.nix @@ -13,12 +13,14 @@ in { # TODO: set NIXOS_OZONE_WL env var xdg.portal = { - config = { - sway.common = ["gtk" "wlr"]; - }; extraPortals = with pkgs; [ xdg-desktop-portal-wlr ]; + config.sway = { + default = ["gtk" "wlr"]; + "org.freedesktop.impl.portal.Screenshot" = ["wlr"]; + "org.freedesktop.impl.portal.ScreenCast" = ["wlr"]; + }; }; programs.sway = { diff --git a/system/desktops/wayland.nix b/system/desktops/wayland.nix index 8a81fdf..e11eca8 100644 --- a/system/desktops/wayland.nix +++ b/system/desktops/wayland.nix @@ -10,12 +10,12 @@ in { config = mkIf cfg.enable { xdg.portal = { enable = true; - xdgOpenUsePortal = true; extraPortals = with pkgs; [ xdg-desktop-portal-gtk ]; - config = { - default.common = ["gtk"]; + config.common = { + default = ["gtk"]; + "org.freedesktop.impl.portal.Secret" = ["gnome-keyring"]; }; }; |