diff --git a/flake-modules/tests.nix b/flake-modules/tests.nix index 4cdac8b..541e1ca 100644 --- a/flake-modules/tests.nix +++ b/flake-modules/tests.nix @@ -35,12 +35,14 @@ dynamicZonesDir = "${bindData}/zones"; in { - services.bind.zones.${testDomain} = { - master = true; - file = "${dynamicZonesDir}/${testDomain}"; - extraConfig = '' - allow-update { key rndc-key; }; - ''; + bind = { + zones.${testDomain} = { + master = true; + file = "${dynamicZonesDir}/${testDomain}"; + extraConfig = '' + allow-update { key rndc-key; }; + ''; + }; }; systemd.services.bind.preStart = ''