nixos: use xdgOpenUsePortal

This commit is contained in:
Guanran Wang 2024-05-28 01:06:06 +08:00
parent b70fb1d1fe
commit 45f0c6e201
Signed by: nyancat
GPG key ID: 91F97D9ED12639CF

View file

@ -43,17 +43,15 @@
security.pam.services.swaylock = {}; security.pam.services.swaylock = {};
xdg.portal = { xdg.portal = {
enable = true; enable = true;
xdgOpenUsePortal = true;
wlr.enable = true; wlr.enable = true;
extraPortals = with pkgs; [xdg-desktop-portal-gtk]; extraPortals = with pkgs; [xdg-desktop-portal-gtk];
config = { # https://gitlab.archlinux.org/archlinux/packaging/packages/sway/-/blob/main/sway-portals.conf
# from Arch Linux config."sway" = {
# https://gitlab.archlinux.org/archlinux/packaging/packages/sway/-/blob/main/sway-portals.conf default = "gtk";
sway = { "org.freedesktop.impl.portal.ScreenCast" = "wlr";
default = "gtk"; "org.freedesktop.impl.portal.Screenshot" = "wlr";
"org.freedesktop.impl.portal.ScreenCast" = "wlr"; "org.freedesktop.impl.portal.Inhibit" = "none";
"org.freedesktop.impl.portal.Screenshot" = "wlr";
"org.freedesktop.impl.portal.Inhibit" = "none";
};
}; };
}; };
services = { services = {