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:
parent
7a3bf859ae
commit
bb711596c1
10
.config/systemd/user/ssh-agent.service
Normal file
10
.config/systemd/user/ssh-agent.service
Normal 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
|
Loading…
Reference in New Issue
Block a user