nixos/unbound: add settings option, deprecate extraConfig#89572
nixos/unbound: add settings option, deprecate extraConfig#89572andir merged 1 commit intoNixOS:masterfrom
Conversation
|
I am currently using this here without any problems so far. |
|
Also, I'm willing to add myself as a maintainer for this module :D |
aanderse
left a comment
There was a problem hiding this comment.
I love PRs that implement settings options! Unfortunately I don't know anything at all about unbound, so if some of my comments are entirely invalid I apologize in advance. Hopefully at least some of my comments will be useful.
|
oops, @aanderse was faster explaning our concerns %) |
acc9e82 to
9f4e416
Compare
|
Actually, before merging that, I'd like to add configuration checking at build time. |
Argh it seems unbound wants its chroot directory to exist when checking the configuration. Is there a way to create, for instance, |
|
It should be sufficient to create it in the build sandbox (I'd expect to get the dir thrown away after that) or am I missing something? |
|
Anything else blocking from merging this? |
|
I suspect verifying that even without |
|
They don't: and I have no idea why this is happening. |
|
It's trying to bind to a ULA address that has been configured manually. I'd say the service is running before |
|
With the tests problem fixed, would it be possible to get this in for 21.05? |
If you write the changelog entry this is good to go in :) |
|
Done! |
|
LGTM just remove that cherry pick line from the commit message. This should be the authoritative commit. |
|
Done. |
Did yo accidentally squash to changes? The commit message still doesn't look "clean". |
|
I don't think so. Does this look better? |
I suspect As-is, it sounds like |
Follow RFC 42 by having a settings option that is then converted into an unbound configuration file instead of having an extraConfig option. Existing options have been renamed or kept if possible. An enableRemoteAccess has been added. It sets remote-control setting to true in unbound.conf which in turn enables the new wrapping of unbound-control to access the server locally. Also includes options 'remoteAccessInterfaces' and 'remoteAccessPort' for remote access. Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
|
Alright, with the new commit message and the tests passing as before this looks A-OK to me. Deferring to @andir to press the big green button :) |
|
Thank you for pushing this through @rissson! Using |
Motivation for this change
Follow RFC 42 by adding a
settingsoption. Other options have been deprecated or removed when renaming them was not possible.It builds on top of #79559 to include the latest modifications to the
unboundservice.Things done
sandboxinnix.confon non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"./result/bin/)nix path-info -Sbefore and after)