nixpkgs/nixos/modules
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
..
config system-path: set implicitly installed packages to be low-priority 2018-12-26 23:16:17 +09:00
hardware Merge pull request #51294 from eadwu/nvidia_x11/legacy_390 2018-12-27 09:08:53 -05:00
i18n/input-method docs: format 2018-09-29 20:51:11 -04:00
installer nixos/cpufreq: Remove the alias to set the cpu frequency governor 2019-01-03 20:57:49 +09:00
misc nixos/cockroachdb: create new service 2018-12-01 19:07:49 -06:00
profiles nixos/security/misc: expose SMT control option 2018-12-27 15:00:49 +01:00
programs Merge pull request #50596 from svanderburg/mobile-updates 2018-12-24 15:52:33 +01:00
security nixos/security/misc: expose SMT control option 2018-12-27 15:00:49 +01:00
services nixos/nsd: Don't override bind via nixpkgs.config 2019-01-04 01:49:50 +01:00
system logind: make killUserProcesses an option (#51426) 2018-12-11 16:51:16 -05:00
tasks nixos/cpufreq: Remove the alias to set the cpu frequency governor 2019-01-03 20:57:49 +09:00
testing Add ssh backdoor to VM tests infrastructure. 2018-09-28 10:53:08 +01:00
virtualisation nixos/modules/virtualisation/google-compute-config.nix: remove google-accounts-daemon 2018-12-21 17:52:37 +01:00
module-list.nix Merge pull request #51566 from adisbladis/google-oslogin 2018-12-24 14:11:49 +01:00
rename.nix nixos/cpufreq: Remove the alias to set the cpu frequency governor 2019-01-03 20:57:49 +09:00