From 0e5c95035d228e0677cf4537cae3076dbdbf7660 Mon Sep 17 00:00:00 2001 From: nicoo Date: Mon, 8 Jan 2024 18:13:46 +0000 Subject: [PATCH] nixos/pam: Fix use of renamed `enableSSHAgentAuth` option --- nixos/modules/security/pam.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/security/pam.nix b/nixos/modules/security/pam.nix index 0c57bea9ae1e..50f9272ac301 100644 --- a/nixos/modules/security/pam.nix +++ b/nixos/modules/security/pam.nix @@ -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` ?