Commit 27a234d

HPCesia <me@hpcesia.com>
2025-10-10 06:58:18
feat: niri's xdg portal
1 parent 5321125
Changed files (1)
modules
desktop
shell
modules/desktop/shell/niri/xdg-portal.nix
@@ -0,0 +1,20 @@
+{
+  flake.modules.nixos.niri = _: {
+    xdg.portal = {
+      enable = true;
+
+      config = {
+        common = {
+          # Use xdg-desktop-portal-gtk for every portal interface...
+          default = [
+            "gtk"
+          ];
+          # except for the secret portal, which is handled by gnome-keyring
+          "org.freedesktop.impl.portal.Secret" = [
+            "gnome-keyring"
+          ];
+        };
+      };
+    };
+  };
+}