Do not require sudo

I get tired of having to enter my password in every time in the terminal. I added this to my nix.configuration:

security.sudo.configFile = ''
  Defaults env_reset
  root ALL=(ALL:ALL) ALL
  %wheel ALL=(ALL) ALL

  # Your custom rule
  tan ALL=(ALL) NOPASSWD: ALL
'';

It’s not working. Any ideas?

https://search.nixos.org/options?channel=23.05&show=security.sudo.wheelNeedsPassword&from=0&size=50&sort=relevance&type=packages&query=sudo+password

1 Like

You will still require sudo, though you might be able to omit your password.

2 Likes

i know you should never do sudo bash , but … remember i didn’t tell you this.

1 Like

Correct. This is what sudo -i is for.

1 Like

my god, they took something which will end you up in hell and gave it a parameter…

the world is truly ending.

lol!