I really don't like scripts that call `sudo` to make a helpful mutation of my global system state.
I rewrote my sudo to
#include <stdlib.h> int main() { return (long)getenv("NO_SUDO_FOR_YOU"); }
which succeeds by default or fails if NO_SUDO_FOR_YOU is set in the environment.
These scripts mostly fail on NixOS, or they do something simple that I would rather rewrite as a script myself. When I do need to use the "super user" account, I use `doas` from OpenBSD.