On Fri, Jul 26, 2024 at 6:50 AM Vladimir Panteleev
<g...@vladimir.panteleev.md> wrote:
>
> This seems to work:
>
> cat > ~/.config/systemd/user.conf <<EOF
> [Manager]
> ManagerEnvironment="XDG_DATA_DIRS=%h/.nix-profile/share"
> EOF

ManagerEnvironment only affects the environment variables for the
systemd user process. To propagate the environment variable to
processes spawned by the manager, use DefaultEnvironment. See
https://www.freedesktop.org/software/systemd/man/latest/systemd-user.conf.html.

--
Dan

Reply via email to