nixos: portal: use configuration from Arch Linux

This commit is contained in:
Guanran Wang 2024-01-16 16:22:15 +08:00
parent feb7cffcf0
commit 0df86e31ee
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8

View file

@ -20,13 +20,13 @@
wlr.enable = true;
extraPortals = with pkgs; [xdg-desktop-portal-gtk];
config = {
common.default = [
"gtk"
];
sway.default = [
"wlr"
"gtk"
];
# from Arch Linux
# https://gitlab.archlinux.org/archlinux/packaging/packages/sway/-/blob/main/sway-portals.conf
sway = {
default = "gtk";
"org.freedesktop.impl.portal.ScreenCast" = "wlr";
"org.freedesktop.impl.portal.Screenshot" = "wlr";
};
};
};
services = {