Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
base: a7e93690afa0
Choose a base ref
...
head repository: NixOS/nixpkgs
compare: 94bc38e6c1f1
Choose a head ref
  • 1 commit
  • 3 files changed
  • 1 contributor

Commits on May 30, 2018

  1. nixos/bind: Allow to set extra options

    BIND doesn't allow the options section (or any section I'd guess) to be
    defined more than once, so whenever you want to set an additional option
    you're stuck using weird hacks like this:
    
    services.bind.forwarders = lib.mkForce [ "}; empty-zones-enable no; #" ];
    
    This basically exploits the fact that values coming from the module
    options aren't escaped and thus works in a similar vain to how SQL
    injection works.
    
    Another option would be to just set configFile to a file that includes
    all the options, including zones. That obviously makes the configuration
    way less extensible and more awkward to use with the module system.
    
    To make sure this change does work correctly I added a small test just
    for that. The test could use some improvements, but better to have a
    test rather than none at all. For a future improvement the test could be
    merged with the NSD test, because both use the same zone file format.
    
    This change has been reviewed in #40053 and after not getting any
    opposition, I'm hereby adding this to master.
    
    Signed-off-by: aszlig <aszlig@nix.build>
    Cc: @peti, @edolstra
    Closes: #40053
    aszlig committed May 30, 2018
    Configuration menu
    Copy the full SHA
    94bc38e View commit details
    Browse the repository at this point in the history