Commit f94eec28 authored by Gregor Kleen's avatar Gregor Kleen
Browse files

nixos/pam: fix infinite recursion

parent b6a8526d
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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 = {