vincentbernat.i3wm-configur.../dotfiles/systemd/ssh-agent.service
Vincent Bernat d85a504c53 Initial i3 configuration
This is derived from my Awesome configuration. Still a lot to do from
a WM perspective. The organization is a bit different and I am giving
it up on the per-display systemd units as it does not really work due
to the fact we only have one user DBus and one environment.
2021-07-04 08:38:39 +02:00

12 lines
366 B
Desktop File

[Unit]
Description=SSH key agent
Wants=dbus.socket
After=dbus.socket
[Service]
Type=simple
Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
ExecStartPre=/usr/bin/dbus-update-activation-environment --systemd SSH_AUTH_SOCK
ExecStart=/usr/bin/ssh-agent -D -a $SSH_AUTH_SOCK
ExecStopPost=/usr/bin/dbus-update-activation-environment --systemd SSH_AUTH_SOCK=
Restart=always