Add ssh-agent service

This commit is contained in:
RealStickman 2023-05-01 11:38:22 +02:00
parent eee00d113e
commit e86bab8dc3

View File

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