nixpkgs/nixos/modules/services
aszlig 1eeeceb9c7
nixos/nsd: Allow to configure root zone
When trying to run NSD to serve the root zone, one gets the following
error message:

error: illegal name: '.'

This is because the name of the zone is used as the derivation name for
building the zone file. However, Nix doesn't allow derivation names
starting with a period.

So whenever the zone is "." now, the file name generated is "root"
instead of ".".

I also added an assertion that makes sure the user sets
services.nsd.rootServer, otherwise NSD will fail at runtime because it
prevents serving the root zone without an explicit compile-time option.

Tested this by adding a root zone to the "nsd" NixOS VM test.

Signed-off-by: aszlig <aszlig@nix.build>
Cc: @hrdinka, @qknight
2018-05-07 04:05:41 +02:00
..
admin/salt salt-minion: link to configuration documentation 2017-05-11 07:12:04 +01:00
amqp nixos/rabbitmq: fix restarts and sasl logs 2017-09-23 17:58:43 -04:00
audio nixos: alsa: better docstring 2018-04-27 18:07:19 +01:00
backup restic-rest-server module: init 2018-05-04 16:55:06 +02:00
cluster/kubernetes fleet: remove package, module, test 2018-05-05 00:28:16 +02:00
computing Merge pull request #30908 from kierdavis/boinc-fhs 2018-04-21 15:25:58 -05:00
continuous-integration nixos/buildkite-agent: fix variable expansion in hook scripts 2018-04-27 12:17:40 +01:00
databases foundationdb: split into multiple, major-versioned packages to make upgrades user-controllable 2018-05-01 15:47:36 -05:00
desktops tree-wide: autorename gnome packages to use dashes 2018-02-25 17:41:16 +01:00
development hoogle service: fixups 2016-04-22 03:58:08 +02:00
editors Merge pull request #39478 from pngwjpgh/infinoted 2018-05-01 10:22:25 -05:00
games ghostOne: remove 2017-12-29 02:18:35 +01:00
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: set group in config 2018-03-28 19:16:41 +02:00
misc nixos/matrix-synapse service: url_preview_url_blacklist fix (#40027) 2018-05-06 09:49:04 +00:00
monitoring prometheus-nginx-exporter: fix bool to string coercion 2018-05-02 16:18:20 +02:00
network-filesystems Merge remote-tracking branch 'origin/staging' into cross-nixos 2018-03-01 14:56:58 -05:00
networking nixos/nsd: Allow to configure root zone 2018-05-07 04:05:41 +02:00
printing nixos/cupsd: Introduce services.printing.logLevel option 2018-04-27 16:41:49 +00:00
scheduling fcron module: be compatible with non-wrapped sendmail's, like opensmtpd's 2017-12-31 03:34:11 +01:00
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 Add localtime package and nixos module 2017-12-03 11:42:51 +01:00
torrent Merge pull request #33679 from flokli/deluge-module 2018-04-25 14:54:34 -05:00
ttys nixos: rename config.system.nixos* -> config.system.nixos.* 2018-02-18 12:56:30 +00:00
web-apps Merge pull request #39008 from serokell/youtrack 2018-04-27 22:16:57 +03:00
web-servers hitch: init at 1.4.8 + service + test (#39358) 2018-05-01 10:36:36 +01:00
x11 nixos/bspwm: spawn bpswm process in the background and properly set waiPID (#39707) 2018-04-30 17:03:05 +00:00