Merge pull request #40881 from hedning/flatpax-xdg-data-dirs

nixos/flatpak: add flatpak's XDG_DATA_DIRS to the environment
This commit is contained in:
Matthew Justin Bauer 2018-05-22 13:55:38 -05:00 committed by GitHub
commit 009d4341d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,12 +40,12 @@ in {
systemd.packages = [ pkgs.flatpak pkgs.xdg-desktop-portal ] ++ cfg.extraPortals;
environment.variables = {
PATH = [
"$HOME/.local/share/flatpak/exports/bin"
"/var/lib/flatpak/exports/bin"
];
environment.profiles = [
"$HOME/.local/share/flatpak/exports"
"/var/lib/flatpak/exports"
];
environment.variables = {
XDG_DESKTOP_PORTAL_PATH = map (p: "${p}/share/xdg-desktop-portal/portals") cfg.extraPortals;
};
};