1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-25 02:10:57 +01:00
home-manager/tests/modules/services/ssh-agent/basic-service.nix
Justin Bassett 0467d026ce ssh-agent: Allow other systemd units access to $SSH_AUTH_SOCK
If another systemd unit wants to talk to the ssh-agent service, they
need to know the SSH_AUTH_SOCK variable to do so.
2025-11-02 10:20:04 -08:00

12 lines
258 B
Nix

{
services.ssh-agent = {
enable = true;
socket = "ssh-agent/socket";
};
nmt.script = ''
assertFileContent \
$(normalizeStorePaths home-files/.config/systemd/user/ssh-agent.service) \
${./basic-service-expected.service}
'';
}