nixos: use xdgOpenUsePortal
This commit is contained in:
parent
b70fb1d1fe
commit
45f0c6e201
1 changed files with 7 additions and 9 deletions
|
@ -43,19 +43,17 @@
|
||||||
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 = {
|
|
||||||
# from Arch Linux
|
|
||||||
# https://gitlab.archlinux.org/archlinux/packaging/packages/sway/-/blob/main/sway-portals.conf
|
# https://gitlab.archlinux.org/archlinux/packaging/packages/sway/-/blob/main/sway-portals.conf
|
||||||
sway = {
|
config."sway" = {
|
||||||
default = "gtk";
|
default = "gtk";
|
||||||
"org.freedesktop.impl.portal.ScreenCast" = "wlr";
|
"org.freedesktop.impl.portal.ScreenCast" = "wlr";
|
||||||
"org.freedesktop.impl.portal.Screenshot" = "wlr";
|
"org.freedesktop.impl.portal.Screenshot" = "wlr";
|
||||||
"org.freedesktop.impl.portal.Inhibit" = "none";
|
"org.freedesktop.impl.portal.Inhibit" = "none";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
services = {
|
services = {
|
||||||
gvfs.enable = true;
|
gvfs.enable = true;
|
||||||
gnome = {
|
gnome = {
|
||||||
|
|
Loading…
Reference in a new issue