From b924367081feb485035714fd0cb696a0633cdc0e Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Wed, 26 Jun 2024 14:33:57 +0530 Subject: home/wayland/portal: init --- home/wayland/home.nix | 1 + home/wayland/modules/firefox.nix | 1 + home/wayland/modules/portal.nix | 16 ++++++++++++++++ 3 files changed, 18 insertions(+) create mode 100644 home/wayland/modules/portal.nix (limited to 'home') diff --git a/home/wayland/home.nix b/home/wayland/home.nix index 253e4f1..a399178 100644 --- a/home/wayland/home.nix +++ b/home/wayland/home.nix @@ -2,6 +2,7 @@ imports = [ ../common/home.nix ./modules/foot.nix + ./modules/portal.nix ./modules/zathura.nix ./modules/firefox.nix ./modules/mimeapps.nix diff --git a/home/wayland/modules/firefox.nix b/home/wayland/modules/firefox.nix index 39e0061..a6abfc5 100644 --- a/home/wayland/modules/firefox.nix +++ b/home/wayland/modules/firefox.nix @@ -80,6 +80,7 @@ ]; }; + "media.webrtc.camera.allow-pipewire" = true; "browser.newtabpage.activity-stream.default.sites" = ""; "extensions.activeThemeID" = "firefox-compact-dark@mozilla.org"; }; 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 + ]; + }; +} -- cgit v1.2.3