nixpkgs/nixos/modules/services
aszlig 94bc38e6c1
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
2018-05-30 05:07:39 +02:00
..
admin nixos/oxidized: add module 2018-05-24 04:40:45 +02:00
amqp
audio nixos/slimserver: Disable broken image/video support (#40589) 2018-05-23 12:31:44 +02:00
backup nixos/borgbackup: make extraArgs a shell variable 2018-05-24 13:53:25 +02:00
cluster/kubernetes fix: connect the --bind-address arg to the cfg.apiserver.address option 2018-05-28 18:07:06 +02:00
computing nixos/slurm: fix xml tag mismatch in manual 2018-05-24 22:56:57 +02:00
continuous-integration nixos/buildkite-agent: fix variable expansion in hook scripts 2018-04-27 12:17:40 +01:00
databases nixos mysql: make start-up more robust (#41010) 2018-05-24 16:42:16 +02:00
desktops nixos/flatpak: add flatpak's XDG_DATA_DIRS to the environment 2018-05-22 02:26:21 +02:00
development
editors Merge pull request #39478 from pngwjpgh/infinoted 2018-05-01 10:22:25 -05:00
games
hardware Merge pull request #39137 from peterhoeg/m/lcd 2018-04-28 22:57:59 +00:00
logging graylog: use jre_headless 2018-03-22 02:29:27 +01:00
mail nixos/dovecot: Fix usage of dhparams option 2018-05-10 08:29:29 +02:00
misc Merge branch 'master' into staging 2018-05-26 00:20:17 +00:00
monitoring nixos/dd-agent: fix runtime errors by adding gohai to $PATH 2018-05-24 10:58:28 +02:00
network-filesystems Merge pull request #40879 from seppeljordan/pr-ipfs-port-scanning 2018-05-24 10:53:49 +02:00
networking nixos/bind: Allow to set extra options 2018-05-30 05:07:39 +02:00
printing nixos/cupsd: Introduce services.printing.logLevel option 2018-04-27 16:41:49 +00:00
scheduling
search elasticsearch6: fix startup due to missing jvm.options 2018-04-18 00:38:48 +02:00
security sshguard: service creates /var/lib/sshguard 2018-05-05 00:29:44 -05:00
system
torrent Merge pull request #33679 from flokli/deluge-module 2018-04-25 14:54:34 -05:00
ttys
web-apps crowd: 3.0.1 -> 3.1.2 2018-05-24 04:40:47 +02:00
web-servers meguca: git-2018-05-17 -> git-2018-05-20 2018-05-26 07:03:49 -05:00
x11 Merge pull request #39615 from jtojnar/gdm-wayland 2018-05-16 16:39:12 +02:00