After improving my boot time the last time, some (not all) boots were still taking time. It seemed to pause somewhere before the login screen,

Analyzing the systemd critical chain, looking for errors in journalctl and some web searching, I found an issue in systemd that matched my problem.

In the issue there is the suggestion to install dbus-broker. I did it and haven’t had any issue since.

Looking for the boot time issue

sudo systemd-analyze critical-chain
sudo journalctl -b -p err..alert

The journal from the issue (matched mine):

Apr 02 20:47:23 nix lightdm[1054]: Error getting user list from org.freedesktop.Accounts: Timeout was reached
Apr 02 20:47:23 nix accounts-daemon[1176]: error getting polkit authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: Timeout was reached
Apr 02 20:47:23 nix dbus-daemon[989]: [system] Failed to activate service 'org.freedesktop.Accounts': timed out (service_start_timeout=25000ms)
Apr 02 20:47:23 nix dbus-daemon[989]: [system] Failed to activate service 'org.freedesktop.PolicyKit1': timed out (service_start_timeout=25000ms)
Apr 02 20:47:23 nix systemd[1]: NetworkManager.service: Unexpected error response from GetNameOwner(): Connection terminated
Apr 02 20:47:23 nix systemd[1]: systemd-logind.service: Unexpected error response from GetNameOwner(): Connection terminated
Apr 02 20:47:23 nix systemd[1]: systemd-homed.service: Unexpected error response from GetNameOwner(): Connection terminated
Apr 02 20:47:23 nix systemd[1]: bluetooth.service: Unexpected error response from GetNameOwner(): Connection terminated
Apr 02 20:47:23 nix systemd[1]: lightdm.service: Unexpected error response from GetNameOwner(): Connection terminated
Apr 02 20:47:23 nix systemd[1]: systemd-hostnamed.service: Unexpected error response from GetNameOwner(): Connection terminated
Apr 02 20:47:23 nix systemd[1]: wpa_supplicant.service: Unexpected error response from GetNameOwner(): Connection terminated
Apr 02 20:47:23 nix systemd[1]: NetworkManager-dispatcher.service: Unexpected error response from GetNameOwner(): Connection terminated
Apr 02 20:47:23 nix systemd[1]: polkit.service: Unexpected error response from GetNameOwner(): Connection terminated
Apr 02 20:47:24 nix systemd-logind[1745]: User or group name "1000" starts with a digit, accepting for compatibility.
Apr 02 20:47:24 nix systemd-logind[1745]: Failed to add user by file name 1000, ignoring: Invalid argument
Apr 02 20:47:24 nix systemd-logind[1745]: User enumeration failed: Invalid argument

Install and enable dbus-broker

paru -S dbus-broker
sudo systemctl enable dbus-broker.service
sudo systemctl start dbus-broker.service