1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00
home-manager/tests/modules/services/ssh-agent/timeout-service.nix
Simon Gate 39d26c1686
ssh-agent: add defaultMaximumIdentityLifetime setting (#7876)
Add option to ssh-agent to add a default value for the maximum lifetime
of identities added to the agent.
2025-09-25 09:26:39 -05:00

12 lines
247 B
Nix

{
services.ssh-agent = {
enable = true;
defaultMaximumIdentityLifetime = 1337;
};
nmt.script = ''
assertFileContent \
home-files/.config/systemd/user/ssh-agent.service \
${./timeout-service-expected.service}
'';
}