Merge pull request #65754 from worldofpeace/xdg-portal-mkif

nixos/xdg/portal: set GTK_USE_PORTAL with lib.mkIf
This commit is contained in:
worldofpeace 2019-08-01 18:36:28 -04:00 committed by GitHub
commit ce21e1caa5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;
};
};