Commit 595387c41b14

Vincent Demeester <vincent@sbr.pm>
2025-09-03 16:46:54
systems: update xdg.portal for niri
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 069f98c
Changed files (1)
systems
common
systems/common/desktop/tiling-common.nix
@@ -33,21 +33,30 @@
     libinput = {
       touchpad = {
         disableWhileTyping = true;
-        additionalOptions = ''
-          							Option "Ignore" "on"
-          						'';
+        # additionalOptions = ''
+        #   							Option "Ignore" "on"
+        #   						'';
       };
     };
   };
 
-  xdg = {
-    portal = {
-      enable = true;
-      wlr.enable = true;
-      extraPortals = with pkgs; [
-        xdg-desktop-portal-wlr
-        xdg-desktop-portal-gtk
-      ];
+  xdg.portal = {
+    enable = true;
+    xdgOpenUsePortal = true;
+    config = {
+      common = {
+        default = [
+          "gnome"
+          "gtk"
+        ];
+        "org.freedesktop.impl.portal.ScreenCast" = "gnome";
+        "org.freedesktop.impl.portal.Screenshot" = "gnome";
+        "org.freedesktop.impl.portal.RemoteDesktop" = "gnome";
+      };
     };
+    extraPortals = [
+      pkgs.xdg-desktop-portal-gtk
+      pkgs.xdg-desktop-portal-gnome
+    ];
   };
 }