forked from jeanclaude/Dotfiles
NEW: Systemd ssh-agent
This commit is contained in:
parent
2db5aebe47
commit
f96eb37bf1
|
@ -0,0 +1 @@
|
|||
SSH_AUTH_SOCK DEFAULT="${XDG_RUNTIME_DIR}/ssh-agent.socket"
|
|
@ -121,6 +121,7 @@ if [[ "$systemd" = true ]]
|
|||
then
|
||||
sudo bash -c "$(declare -f linker); linker \"$dotfiles/acpi\" '/etc/acpi'" # Run as root
|
||||
linker "$dotfiles/systemd" ~/.config/systemd
|
||||
linker "$dotfiles/.pam_environment" ~/.config/.pam_environment
|
||||
fi
|
||||
|
||||
if [[ "$homeServer" = true ]]
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
/home/jeanclaude/.config/systemd/user/ssh-agent.service
|
|
@ -0,0 +1,11 @@
|
|||
[Unit]
|
||||
Description=SSH key agent
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
|
||||
Environment=DISPLAY=:0
|
||||
ExecStart=/usr/bin/ssh-agent -D -a $SSH_AUTH_SOCK
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
Loading…
Reference in New Issue