I'm trying to have my computer automatically log in as a specific user after reboot on an Arch Linux machine. I followed the guide from the Arch Linux Wiki, ran
# systemctl edit getty@tty1 and pasted the following lines:
[Service] ExecStart= ExecStart=-/usr/bin/agetty --autologin username --noclear %I $TERM
This works and I'm automatically logged in and everything. However, when I press CTRL+D to log out because I want to log in as someone else, autologin is triggered and I'm immediately logged back in. How can I configure autologin to only automatically log me in the first time after boot and do nothing when I manually log out?