nixos/pam: Fix use of renamed enableSSHAgentAuth option

This commit is contained in:
nicoo 2024-01-08 18:13:46 +00:00
parent c289413caa
commit 0e5c95035d

View file

@ -1476,7 +1476,7 @@ in
'';
}
{
assertion = config.security.pam.enableSSHAgentAuth -> config.services.openssh.authorizedKeysFiles != [];
assertion = with config.security.pam.sshAgentAuth; enable -> authorizedKeysFiles != [];
message = ''
`security.pam.enableSSHAgentAuth` requires `services.openssh.authorizedKeysFiles` to be a non-empty list.
Did you forget to set `services.openssh.enable` ?