1
0
forked from extern/nix-config

Add ssh-agent service

Instead of trying to do something fancy with shell init scripts, we let
systemd handle ssh-agent instead.
This commit is contained in:
Donovan Glover 2018-10-15 08:54:25 -04:00
parent 7a3bf859ae
commit bb711596c1
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -0,0 +1,10 @@
[Unit]
Description=SSH agent
[Service]
Type=forking
Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
ExecStart=/usr/bin/ssh-agent -a $SSH_AUTH_SOCK
[Install]
WantedBy=default.target