Custom Sudoers
sudo nano /etc/sudoers.d/passwordless-sudo
Add the same line as above to the new file:
username ALL=(ALL) NOPASSWD: ALL
Save and exit the file. Make sure the file has the correct permissions:
sudo chmod 0440 /etc/sudoers.d/passwordless-sudo