nixpkgs/nixos/tests
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
..
common nixos/tests/acme: fix on i686, improve timing (#40410) 2018-05-13 19:59:59 +02:00
hitch hitch: init at 1.4.8 + service + test (#39358) 2018-05-01 10:36:36 +01:00
hocker-fetchdocker
initrd-network-ssh nixos/tests: rename IP addresses/routes options 2018-02-17 14:57:07 +01:00
krb5
kubernetes Kubernetes tests: increase the size of the VM from 700MB to 1.5GB 2018-05-25 11:10:15 +02:00
acme.nix nixos/tests/acme: fix on i686, improve timing (#40410) 2018-05-13 19:59:59 +02:00
ammonite.nix
atd.nix nixos/tests/atd : remove test of batch command 2018-03-21 00:58:41 +01:00
avahi.nix
beegfs.nix
bind.nix nixos/bind: Allow to set extra options 2018-05-30 05:07:39 +02:00
bittorrent.nix nixos/tests: rename IP addresses/routes options 2018-02-17 14:57:07 +01:00
blivet.nix
boot-stage1.nix nixos.tests.boot-stage1: fix missing libelf 2018-02-22 04:04:49 +01:00
boot.nix Fix installing the Nixpkgs channel on the installation media 2018-02-27 19:58:23 +01:00
borgbackup.nix nixos/borgbackup: init 2018-03-19 13:12:47 +01:00
buildbot.nix
cadvisor.nix
cassandra.nix
ceph.nix nixos/ceph: init module (#35299) 2018-03-01 11:47:13 +00:00
chromium.nix nixos/tests/chromium: Wait 10s after new window 2018-04-28 17:35:13 +02:00
cjdns.nix nixos/tests: rename IP addresses/routes options 2018-02-17 14:57:07 +01:00
cloud-init.nix
containers-bridge.nix nixos/tests: rename IP addresses/routes options 2018-02-17 14:57:07 +01:00
containers-extra_veth.nix nixos/tests: rename IP addresses/routes options 2018-02-17 14:57:07 +01:00
containers-hosts.nix nixos/tests: rename IP addresses/routes options 2018-02-17 14:57:07 +01:00
containers-imperative.nix nixos/tests: prevent stateVersion warnings in eval 2018-05-15 00:22:35 +02:00
containers-ipv4.nix nixos/tests: prevent stateVersion warnings in eval 2018-05-15 00:22:35 +02:00
containers-ipv6.nix
containers-macvlans.nix nixos/tests: rename IP addresses/routes options 2018-02-17 14:57:07 +01:00
containers-physical_interfaces.nix nixos/containers-physical_interfaces: use new bond option interface 2018-03-31 19:01:10 +01:00
containers-portforward.nix
containers-reloadable.nix nixos/tests: rename IP addresses/routes options 2018-02-17 14:57:07 +01:00
containers-restart_networking.nix nixos/tests: rename IP addresses/routes options 2018-02-17 14:57:07 +01:00
containers-tmpfs.nix nixos/tests/containers-tmpfs: fix test name 2018-03-12 22:28:27 +01:00
couchdb.nix
deluge.nix deluge: add test 2018-04-13 10:30:22 +02:00
dhparams.nix nixos/dhparams: Add a defaultBitSize option 2018-05-07 04:58:52 +02:00
dnscrypt-proxy.nix nixos/dnscrypt-proxy: fix apparmor profile and test 2018-05-20 02:25:42 +02:00
docker-edge.nix
docker-registry.nix nixos/docker-registry: Add support for garbage collector to docker registry 2018-05-01 15:23:47 +02:00
docker-tools-overlay.nix docker-tools: add a test for permissions issues with AUFS/overlay 2018-04-14 14:11:14 +02:00
docker-tools.nix tests/docker-tools: Adds regression test for #34779 2018-05-24 12:23:51 -04:00
docker.nix
dovecot.nix dovecot module: test dovecot's LDA 2018-04-12 01:35:14 +02:00
ec2.nix
ecryptfs.nix
elk.nix
emacs-daemon.nix
env.nix
etcd-cluster.nix
etcd.nix
ferm.nix nixos/tests: rename IP addresses/routes options 2018-02-17 14:57:07 +01:00
firefox.nix
firewall.nix
flannel.nix
flatpak.nix nixos/flatpak: add test 2018-05-15 14:18:44 +02:00
fwupd.nix nixos/fwupd: add test 2018-02-15 01:11:13 +01:00
gdk-pixbuf.nix nixos/release.nix: add tests.gdk-pixbuf 2018-04-25 18:37:44 +02:00
gitlab.nix
gitolite.nix
gjs.nix nixos/gjs: add test 2018-02-14 22:43:59 +01:00
gnome3-gdm.nix nixos/tests/gnome3-gdm: fix broken test 2018-04-21 12:09:30 +02:00
gnome3.nix
gocd-agent.nix
gocd-server.nix
grafana.nix grafana: 5.0.0 -> 5.0.1 2018-03-12 23:37:29 +01:00
graphite.nix nixos/tests/graphite: fix test 2018-05-10 23:30:56 +02:00
haka.nix
hardened.nix nixos/tests/hardened: fix test (#40745) 2018-05-19 08:42:15 +02:00
hibernate.nix nixos/tests/hibernate: Fix netcat flags 2018-04-29 23:46:47 +02:00
home-assistant.nix nixos/tests/home-assistant: ignore "Timer got out of sync" error (#40735) 2018-05-18 23:06:25 +02:00
hound.nix
hydra.nix
i3wm.nix
iftop.nix nixos/iftop: add module 2018-04-07 15:06:51 +02:00
influxdb.nix
initrd-network.nix
installer.nix nixos/tests/installer: Add lndir to extraDeps 2018-05-15 18:51:53 +02:00
ipfs.nix
ipv6.nix nixos/tests: fix test failure due to preferTempAddress changes 2018-02-19 11:31:20 +01:00
jenkins.nix
kafka.nix kafka: Add 1.1 2018-05-16 22:26:40 -04:00
kernel-copperhead.nix linux-copperhead: Fix test 2018-04-28 20:20:47 +00:00
kernel-latest.nix
kernel-lts.nix
kexec.nix
keymap.nix nixos/tests/keymap: wait for xdotool to succeed 2018-04-25 10:16:52 +02:00
ldap.nix
leaps.nix
lightdm.nix
login.nix
make-test.nix nixos/tests/make-test.nix: Fix eval error 2018-02-02 17:44:08 +01:00
mathics.nix
matrix-synapse.nix nixos/tests: add matrix-synapse test 2018-02-04 21:22:55 -04:00
mesos.nix nixos/tests/mesos: wait for all services and ports 2018-05-11 19:26:35 +02:00
mesos_test.py
minio.nix
misc.nix nixos/tests/misc: Fix on aarch64 2018-03-25 18:29:21 +03:00
mongodb.nix
mpich-example.c
mumble.nix
munin.nix
mutable-users.nix
mysql-backup.nix nixos/tests/mysql-backup: fix non-deterministic failure (#40258) 2018-05-12 11:37:35 +02:00
mysql-replication.nix nixos/tests/mysql-replication: fix test (#40850) 2018-05-22 01:22:12 +02:00
mysql.nix nixos mysql: make start-up more robust (#41010) 2018-05-24 16:42:16 +02:00
nat.nix nixos/tests: rename IP addresses/routes options 2018-02-17 14:57:07 +01:00
netdata.nix
networking-proxy.nix
networking.nix Merge pull request #27688 from rnhmjoj/routes 2018-02-19 14:12:58 +00:00
nexus.nix nixos/tests/nexus: fix for i686 (#40743) 2018-05-19 11:09:07 +02:00
nfs.nix
nghttpx.nix
nginx.nix
nix-ssh-serve.nix nixos: nix.sshServe: Support ssh-ng. 2018-02-28 16:55:00 -05:00
novacomd.nix nixos: Add basic test of novacomd 2018-02-20 11:03:49 -06:00
nsd.nix nixos/nsd: Allow to configure root zone 2018-05-07 04:05:41 +02:00
openldap.nix nixos/tests/openldap: Fix name 2018-04-04 18:26:41 +03:00
openssh.nix nixos: nix.sshServe: Support ssh-ng. 2018-02-28 16:55:00 -05:00
osquery.nix nixos/osquery: add test 2018-04-30 16:49:38 +02:00
owncloud.nix
pam-oath-login.nix
partition.nix
peerflix.nix
pgjwt.nix
pgmanage.nix
phabricator.nix
php-pcre.nix
plasma5.nix
plotinus.nix nixos/tests/plotinus: fix non-deterministic failure (#40239) 2018-05-10 19:38:02 +02:00
postgis.nix postgis: get rid of composableDerivation 2018-02-20 22:17:16 +01:00
postgresql.nix
powerdns.nix nixos/powerdns: add test 2018-02-17 16:43:41 +00:00
predictable-interface-names.nix nixos/tests/predictable-interface-names: Refactor 2018-04-29 15:36:56 +02:00
printing.nix cups service: fix client sockets 2018-02-23 18:51:39 +03:00
prometheus.nix
prosody.nix nixos/prosody: add a basic test 2018-03-21 15:33:58 +01:00
proxy.nix
quagga.nix nixos/tests: rename IP addresses/routes options 2018-02-17 14:57:07 +01:00
quake3.nix
rabbitmq.nix
radicale.nix nixos: rename system.{stateVersion,defaultChannel} -> system.nixos.\1 2018-05-12 19:27:09 +00:00
riak.nix
rspamd.nix nixos/rspamd: options for worker configuration and socket activation 2018-02-09 06:19:03 +01:00
run-in-machine.nix
rxe.nix nixos/rdma-core: add module for soft RoCE and test (#34607) 2018-02-10 07:52:03 +00:00
samba.nix
sddm.nix
simple.nix
slim.nix
slurm.nix nixos/slurm: enable munge by default, added note to slurm description 2018-05-24 16:59:48 +02:00
smokeping.nix
snapper.nix
ssh-keys.nix nixos: nix.sshServe: Support ssh-ng. 2018-02-28 16:55:00 -05:00
statsd.nix nixos/statsd: refactor test (#40554) 2018-05-16 18:03:55 +02:00
strongswan-swanctl.nix strongswan-swanctl: fix test 2018-02-28 11:44:00 +01:00
subversion.nix
sudo.nix
switch-test.nix
systemd.nix nixos/test/systemd: fix broken test 2018-04-16 00:43:33 +02:00
taskserver.nix
testdb.sql
timezone.nix
tomcat.nix
trac.nix
transmission.nix nixos/transmission: add basic nixos test 2018-04-05 22:07:49 +02:00
udisks2.nix nixos/tests/udisks2: Fix USB device hotplug 2018-04-30 03:02:57 +02:00
vault.nix vault: Fix test 2018-03-18 19:15:56 +00:00
virtualbox.nix nixos/tests/virtualbox: Work around test failures 2018-03-13 22:00:56 +01:00
wordpress.nix
xautolock.nix xautolock: implement basic test to confirm functionality 2018-03-13 21:04:44 +01:00
xdg-desktop-portal.nix nixos/xdg-desktop-portal: add test 2018-05-15 14:18:44 +02:00
xfce.nix
xmonad.nix
xrdp.nix
xss-lock.nix nixos/xsslock: wait until pgrep xlock succeeds (#40810) 2018-05-20 20:59:53 +02:00
yabar.nix
zfs.nix
zookeeper.nix