The doas program is packaged on guix, but is there a way to completely remove sudo in preference of doas? On nixos one can simply programs.sudo.enable = false, but it seems a bit more involved on guix.
The only place I’ve found so far through a cursory glance over the guix repository is that sudo is only installed by the %base-packages/hurd variable, so could I modify that list to achieve my goal, or are there other places in guix where sudo is expected?
It’s pretty hacky right now, but I’m thinking about cleaning it up, adding some actual configuration, and submitting a PR to the guix repo to add this.
Secondly, in order to remove sudo, you have to delete the entry from your privileged programs list.
This technically doesn’t remove sudo from your system profile, since there’s a line in the guix code adding it to %base-packages, but it does prevent sudo from actually working. If you want to go the extra mile you can remove sudo entirely by using the value returned by (delq sudo %base-packages) instead of just %base-packages