1
0
Fork 0

Users: create script to run ssh-agent (yeah, still trying to solve this...)

This commit is contained in:
Aires 2024-12-01 22:17:17 -05:00
parent de74141c21
commit e58fc6016a

View file

@ -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
};
};
}