Users: create script to run ssh-agent (yeah, still trying to solve this...)
This commit is contained in:
parent
de74141c21
commit
e58fc6016a
|
@ -101,7 +101,13 @@ in
|
|||
};
|
||||
|
||||
# Run the SSH agent on login
|
||||
services.ssh-agent.enable = true;
|
||||
systemd.user.services."ssh-agent" = {
|
||||
Unit.Description = "Manually starts the SSH agent.";
|
||||
Service.ExecStart = ''
|
||||
eval "$(ssh-agent -s)"
|
||||
'';
|
||||
Install.WantedBy = [ "multi-user.target" ]; # starts after login
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue