nixos/pam: fix infinite recursion

This commit is contained in:
Gregor Kleen
2025-11-09 13:00:07 +01:00
parent b6a8526db0
commit f94eec282e

View File

@@ -2312,8 +2312,7 @@ in
environment.etc = lib.mapAttrs' makePAMService enabledServices;
systemd =
lib.optionalAttrs
(lib.any (service: service.updateWtmp) (lib.attrValues config.security.pam.services))
lib.mkIf (lib.any (service: service.updateWtmp) (lib.attrValues config.security.pam.services))
{
tmpfiles.packages = [ pkgs.util-linux.lastlog ]; # /lib/tmpfiles.d/lastlog2-tmpfiles.conf
services.lastlog2-import = {