xdg-portal: improve description of extraPortals (#6760)

- Specified more clearly how the extra portals affect the environment
This commit is contained in:
Axel Karjalainen
2025-04-08 17:46:20 +03:00
committed by GitHub
parent df09fb5981
commit 5966fc8bd1

View File

@@ -35,9 +35,12 @@ in {
type = types.listOf types.package;
default = [ ];
description = ''
List of additional portals that should be passed to the
`xdg-desktop-portal.service`, via the `XDG_DESKTOP_PORTAL_DIR`
variable.
List of additional portals that should be added to the environment.
The directory where the portal definitions have been merged together
(likely `~/.nix-profile/share/xdg-desktop-portal/portals`) will get
passed to `xdg-desktop-portal.service` via the
`NIX_XDG_DESKTOP_PORTAL_DIR` environment variable.
Portals allow interaction with system, like choosing files or taking
screenshots. At minimum, a desktop portal implementation should be