Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
nixos/doas: init #86488
Motivation for this change
I noticed that #74184 was both unmerged and behind by a patch version, so I wanted to update it. Then I read the comment that there was no suid wrapper for it, and thus began my journey into making my very first NixOS module. Most of the work is based off of the existing
This is a draft because, although I've tested this in a NixOS VM, I haven't used it for any real length of time. It definitely gets suid and can run commands as root, but that's really the extent of my testing. More testing is welcome, suggestions on what to improve, etc.
`doas` is a lighter alternative to `sudo` that "provide[s] 95% of the features of `sudo` with a fraction of the codebase" . I prefer it to `sudo`, so I figured I would add a NixOS module in order for it to be easier to use. The module is based off of the existing `sudo` module.  https://github.com/Duncaen/OpenDoas