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
amqp
audio
backup
cluster
computing
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
editors
games
hardware nixos/cpufreq: Remove the alias to set the cpu frequency governor 2019-01-03 20:57:49 +09:00
logging
mail
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
scheduling
search
security
system nixos/nscd: Add a descriptive comment to the nscd configuration 2018-12-12 15:35:46 +01:00
torrent
ttys
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