feat: Configure XDG portal
This commit is contained in:
1 parent
a364710a01
commit
300e25e6f1
2 files changed
+31
-18
No files matched your search
@@ -15,24 +15,6 @@ in {
|
||||
};
|
||||
|
||||
security.pam.services.swaylock = {};
|
||||
|
||||
# Necessary for e.g. screensharing.
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
# See https://github.com/YaLTeR/niri/wiki/Important-Software#portals.
|
||||
# Niri's NixOS module appears to automatically bring in
|
||||
# xdg-desktop-portal-gnome and gnome-keyring.
|
||||
extraPortals = [
|
||||
pkgs.xdg-desktop-portal-gtk
|
||||
pkgs.xdg-desktop-portal-wlr
|
||||
];
|
||||
xdgOpenUsePortal = true;
|
||||
config.preferred = {
|
||||
default = [ "gtk" ];
|
||||
"org.freedesktop.impl.portal.Screenshot" = [ "wlr" ];
|
||||
"org.freedesktop.impl.portal.ScreenCast" = [ "wlr" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user