[systemd-devel] "systemd-path systemd-search-user-unit" does not match reality

2024-07-25 Thread Vladimir Panteleev
Hi, Context: I'm trying to use home-manager, which extends the systemd user unit search path. However, though I can see the added path in "systemd-path systemd-search-user-unit", systemd still cannot find units there: - $ systemctl --user daemon-reload $ systemd-path systemd-search-user-unit

Re: [systemd-devel] "systemd-path systemd-search-user-unit" does not match reality

2024-07-26 Thread Vladimir Panteleev
On Thu, 25 Jul 2024 at 11:59, Mantas Mikulėnas wrote: > The paths for user units and other user configuration depend on your > XDG_{CONFIG,DATA}_{DIRS,HOME} environment variables. > > Since systemd-search-user-unit is running as part of your interactive session > (and under your interactive shel

Re: [systemd-devel] "systemd-path systemd-search-user-unit" does not match reality

2024-07-26 Thread Vladimir Panteleev
On Fri, 26 Jul 2024 at 15:59, Dan Nicholson wrote: > ManagerEnvironment only affects the environment variables for the > systemd user process. Thank you; affecting the configuration of the systemd user process itself is exactly what is needed. DefaultEnvironment would not have affected the unit s

Re: [systemd-devel] "systemd-path systemd-search-user-unit" does not match reality

2024-07-26 Thread Vladimir Panteleev
On Fri, 26 Jul 2024 at 12:50, Vladimir Panteleev wrote: > cat > ~/.config/systemd/user.conf < [Manager] > ManagerEnvironment="XDG_DATA_DIRS=%h/.nix-profile/share" > EOF Amendment - the above may break stuff (e.g. nautilus, eog), a better value is: ManagerEnvironme