Merge pull request #65754 from worldofpeace/xdg-portal-mkif
nixos/xdg/portal: set GTK_USE_PORTAL with lib.mkIf
This commit is contained in:
commit
ce21e1caa5
|
@ -51,7 +51,7 @@ with lib;
|
|||
systemd.packages = packages;
|
||||
|
||||
environment.variables = {
|
||||
GTK_USE_PORTAL = optional cfg.gtkUsePortal "1";
|
||||
GTK_USE_PORTAL = mkIf cfg.gtkUsePortal "1";
|
||||
XDG_DESKTOP_PORTAL_PATH = map (p: "${p}/share/xdg-desktop-portal/portals") cfg.extraPortals;
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue