Add ssh-agent service
This commit is contained in:
parent
67cd054cf2
commit
d7651d1af9
@ -54,6 +54,22 @@ in
|
||||
./home-manager/fish.nix
|
||||
];
|
||||
|
||||
systemd.user.services = {
|
||||
service-name = {
|
||||
Unit = {
|
||||
Description = "SSH key agent";
|
||||
};
|
||||
Service = {
|
||||
Type = "simple";
|
||||
Environment = "SSH_AUTH_SOCK=%t/ssh-agent.socket";
|
||||
ExecStart = "/usr/bin/ssh-agent -D -a $SSH_AUTH_SOCK";
|
||||
};
|
||||
Install = {
|
||||
WantedBy = "default.target";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.mako.enable = true;
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user