add ssh-agent systemd service
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# my dots
|
||||
|
||||
dots for my lenovo yoga slim 7i pro 「itomori」, managed with `gnu stow`.
|
||||
dots for my laptop 「itomori」, managed with `gnu stow`.
|
||||
|
||||
Files can be `stow`'ed and un'`stow`'ed with `stow.sh`.
|
||||
It will link all dotfiles to their correct place.
|
||||
@@ -9,6 +9,10 @@ It will link all dotfiles to their correct place.
|
||||
Fonts are provided in `fonts/`
|
||||
SFMono also provides icons.
|
||||
|
||||
## ssh-agent(1)
|
||||
Move `ssh-agent.service` to `~/.config/systemd/user/ssh-agent.service`
|
||||
and start it appropriately.
|
||||
|
||||
## deps
|
||||
### for sway
|
||||
+ `waybar`
|
||||
|
||||
15
ssh-agent.service
Normal file
15
ssh-agent.service
Normal file
@@ -0,0 +1,15 @@
|
||||
# Requires SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
|
||||
[Unit]
|
||||
ConditionEnvironment=!SSH_AGENT_PID
|
||||
Description=OpenSSH key agent
|
||||
Documentation=man:ssh-agent(1) man:ssh-add(1) man:ssh(1)
|
||||
|
||||
[Service]
|
||||
Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
|
||||
ExecStart=/usr/bin/ssh-agent -a $SSH_AUTH_SOCK
|
||||
PassEnvironment=SSH_AGENT_PID
|
||||
SuccessExitStatus=2
|
||||
Type=forking
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
Reference in New Issue
Block a user