nixos/flatpak: add flatpak's XDG_DATA_DIRS to the environment
We use environment.profiles to add both the PATH and XDG_DATA_DIRS.
This commit is contained in:
parent
d9bdd77eb5
commit
17e0e67930
@ -40,12 +40,12 @@ in {
|
|||||||
|
|
||||||
systemd.packages = [ pkgs.flatpak pkgs.xdg-desktop-portal ] ++ cfg.extraPortals;
|
systemd.packages = [ pkgs.flatpak pkgs.xdg-desktop-portal ] ++ cfg.extraPortals;
|
||||||
|
|
||||||
environment.variables = {
|
environment.profiles = [
|
||||||
PATH = [
|
"$HOME/.local/share/flatpak/exports"
|
||||||
"$HOME/.local/share/flatpak/exports/bin"
|
"/var/lib/flatpak/exports"
|
||||||
"/var/lib/flatpak/exports/bin"
|
];
|
||||||
];
|
|
||||||
|
|
||||||
|
environment.variables = {
|
||||||
XDG_DESKTOP_PORTAL_PATH = map (p: "${p}/share/xdg-desktop-portal/portals") cfg.extraPortals;
|
XDG_DESKTOP_PORTAL_PATH = map (p: "${p}/share/xdg-desktop-portal/portals") cfg.extraPortals;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user