nixos/xdg: enable fuse for desktop portals

xdg-document-portal mounts a FUSE filesystem and libfuse expects /run/wrappers/bin/fusermount3. Enable programs.fuse with the portal now that FUSE is no longer enabled globally.

Closes #542790

Assisted-by: pi coding agent / Mika (OpenAI gpt-5.6-sol)
Suggested-by: Audrey Dutcher <audrey@rhelmot.io>
This commit is contained in:
Gerhard Schwanzer
2026-07-18 10:58:58 +02:00
parent 20535e48e1
commit e4d9d6766f
+2
View File
@@ -116,6 +116,8 @@ in
packages = [ pkgs.xdg-desktop-portal ] ++ cfg.extraPortals;
in
mkIf cfg.enable {
programs.fuse.enable = true;
warnings = lib.optional (cfg.configPackages == [ ] && cfg.config == { }) ''
xdg-desktop-portal 1.17 reworked how portal implementations are loaded, you
should either set `xdg.portal.config` or `xdg.portal.configPackages`