nixpkgs/nixos/modules/services
aszlig 751bdacc9b
nixos/nsd: Don't override bind via nixpkgs.config
When generating values for the services.nsd.zones attribute using values
from pkgs, we'll run into an infinite recursion because the nsd module
has a condition on the top-level definition of nixpkgs.config.

While it would work to push the definition a few levels down, it will
still only work if we don't use bind tools for generating zones.

As far as I could see, Python support for BIND seems to be only needed
for the dnssec-* tools, so instead of using nixpkgs.config, we now
directly override pkgs.bind instead of globally in nixpkgs.

To illustrate the problem with a small test case, instantiating the
following Nix expression from the nixpkgs source root will cause the
mentioned infinite recursion:

  (import ./nixos {
    configuration = { lib, pkgs, ... }: {
      services.nsd.enable = true;
      services.nsd.zones = import (pkgs.writeText "foo.nix" ''
        { "foo.".data = "xyz";
          "foo.".dnssec = true;
        }
      '');
    };
  }).vm

With this change, generating zones via import-from-derivation is now
possible again.

Signed-off-by: aszlig <aszlig@nix.build>
Cc: @pngwjpgh
2019-01-04 01:49:50 +01:00
..
admin salt: Restart on config changes 2018-10-15 19:59:25 -07:00
amqp rabbitmq module: Update documentation after proofreading 2018-11-03 19:19:04 +01:00
audio nixos/mpd: allow storage plugins in musicDirectory 2018-08-03 21:36:38 +02:00
backup nixos/borgbackup: allow paths to be empty or relative (#51275) 2018-11-30 17:37:50 +01:00
cluster nixos/kubernetes: allow to disable clusterCidr 2018-11-26 16:36:30 +01:00
computing nixos/slurm: add extraConfigPaths options 2018-11-22 11:43:05 +01:00
continuous-integration nixos/jenkins-job-builder: add accessTokenFile option 2018-12-03 17:07:29 +01:00
databases Merge pull request #51813 from samueldr/aarch64/disable-non-arm-builds-part-1 2018-12-20 21:06:52 -05:00
desktops geoclue2: correct sysconfdir 2018-12-25 18:38:19 -05:00
development nixos/jupyter: wait for network.target 2018-11-06 20:40:20 +01:00
editors Treewide: use HTTPS on GNU domains 2018-12-02 15:51:59 +01:00
games nixos/minetest fix: add missing uid/gid for minetest 2018-11-11 12:47:09 +01:00
hardware nixos/cpufreq: Remove the alias to set the cpu frequency governor 2019-01-03 20:57:49 +09:00
logging journaldriver: 1.0.0 -> 1.1.0 (#48106) 2018-10-09 23:45:43 +02:00
mail roundcube: apply code review suggestions 2018-11-28 18:53:37 +01:00
misc nixos/nscd: Merge nscd and sssd-nscd config 2018-12-12 15:35:40 +01:00
monitoring nixos/prometheus-bind-exporter: add module 2019-01-03 21:14:21 +01:00
network-filesystems Add IPFS warning 2018-12-22 20:04:19 +01:00
networking nixos/nsd: Don't override bind via nixpkgs.config 2019-01-04 01:49:50 +01:00
printing cups-googlecloudprint: init at 20160502 2018-10-11 09:19:58 +01:00
scheduling nixos/modules: users.(extraUsers|extraGroup->users|group) 2018-06-30 03:02:58 +02:00
search elk: 6.3.2 -> 6.5.1 2018-12-01 12:47:12 +01:00
security nixos/tor: add HiddenServiceVersion option 2018-11-23 20:53:02 +00:00
system nixos/nscd: Add a descriptive comment to the nscd configuration 2018-12-12 15:35:46 +01:00
torrent nixos/transmission: fix AppArmor profile to include keyutils 2018-08-31 17:19:29 +02:00
ttys nixos/kmscon: Add autologin option 2018-09-29 21:55:14 +02:00
web-apps Merge pull request #51053 from Ma27/draft-nextcloud-module-docs 2018-12-16 12:16:47 +01:00
web-servers owncloud: remove server 2018-12-16 15:05:53 +01:00
x11 nixos/display-managers: allow pure wayland sessions 2019-01-03 09:38:36 +03:00