[0] https://wiki.archlinux.org/title/systemd/User
[1] https://crankshaft.space/docs/usage/autostart
[2] https://flathub.org/apps/details/space.crankshaft.Crankshaft
[0] https://wiki.archlinux.org/title/systemd/User
[1] https://crankshaft.space/docs/usage/autostart
[2] https://flathub.org/apps/details/space.crankshaft.Crankshaft
https://git.sr.ht/~whynothugo/dotfiles/tree/c0bf9296c6ca8661...
Note that the ordering is important so that `SSH_AUTH_SOCK` is passed down to other services.
Ie, create a ssh-agent.target and have the default target depend on it.
Now your ssh-agent is guaranteed to be online when the default target comes up.
But, since the unit is already setting a fixed path for the agent, I would just put that path in my .profile and call it a day. Having systems do environment variable injection seems too fragile to me, especially for static variables.
But yeah, `environment.d` or `.profile` would be simpler. I mostly opted to keep everything in one place.