Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib: add option parameter to make default additive
It's sometimes the case that your option's default value should be additive such that setting it results in the default value being merged with whatever was set. Previously, you had to add the default value in the implementation which might be many lines away from the option declaration and is generally an odd pattern. This is a lot clearer, simpler and doesn't add much complexity. If this becomes used more widely, it should be rendered in the generated options' manual and nixos-search.
- Loading branch information