summaryrefslogtreecommitdiff
path: root/home/wayland/modules/portal.nix
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-06-26 14:33:57 +0530
committersinanmohd <sinan@sinanmohd.com>2024-06-26 14:51:54 +0530
commitb924367081feb485035714fd0cb696a0633cdc0e (patch)
tree2a30f0350034e287011aec56c2de06851cf465a7 /home/wayland/modules/portal.nix
parentde63ffe4d2821404f35f03f189072d425aef6178 (diff)
home/wayland/portal: init
Diffstat (limited to 'home/wayland/modules/portal.nix')
-rw-r--r--home/wayland/modules/portal.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/home/wayland/modules/portal.nix b/home/wayland/modules/portal.nix
new file mode 100644
index 0000000..5cb620c
--- /dev/null
+++ b/home/wayland/modules/portal.nix
@@ -0,0 +1,16 @@
+{ pkgs, ... }: {
+ xdg.portal = {
+ enable = true;
+
+ config.common = {
+ default = "gtk";
+ "org.freedesktop.impl.portal.ScreenCast" = "wlr";
+ "org.freedesktop.impl.portal.Screenshot" = "wlr";
+ };
+
+ extraPortals = with pkgs; [
+ xdg-desktop-portal-wlr
+ xdg-desktop-portal-gtk
+ ];
+ };
+}