summary refs log tree commit diff
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2023-07-09 23:32:58 +0200
committerVladimír Čunát <v@cunat.cz>2023-09-23 10:04:02 +0200
commit45e71a7a99d0678a6694f1bba2c90f256092b01f (patch)
treef6093e52939778eed2fff8650bd6c2f2d4d58a2a
parent8e93f353cc26904b4ba7c128536014aaf6df4a5c (diff)
downloadnixpkgs-45e71a7a99d0678a6694f1bba2c90f256092b01f.tar
nixpkgs-45e71a7a99d0678a6694f1bba2c90f256092b01f.tar.gz
nixpkgs-45e71a7a99d0678a6694f1bba2c90f256092b01f.tar.bz2
nixpkgs-45e71a7a99d0678a6694f1bba2c90f256092b01f.tar.lz
nixpkgs-45e71a7a99d0678a6694f1bba2c90f256092b01f.tar.xz
nixpkgs-45e71a7a99d0678a6694f1bba2c90f256092b01f.tar.zst
nixpkgs-45e71a7a99d0678a6694f1bba2c90f256092b01f.zip
nixosTests.kea: use knot.settings for configuration
-rw-r--r--nixos/tests/kea.nix51
1 files changed, 26 insertions, 25 deletions
diff --git a/nixos/tests/kea.nix b/nixos/tests/kea.nix
index b4095893b48..c8ecf771fa1 100644
--- a/nixos/tests/kea.nix
+++ b/nixos/tests/kea.nix
@@ -134,31 +134,32 @@ import ./make-test-python.nix ({ pkgs, lib, ...}: {
         extraArgs = [
           "-v"
         ];
-        extraConfig = ''
-          server:
-              listen: 0.0.0.0@53
-
-          log:
-            - target: syslog
-              any: debug
-
-          acl:
-            - id: dhcp_ddns
-              address: 10.0.0.1
-              action: update
-
-          template:
-            - id: default
-              storage: ${zonesDir}
-              zonefile-sync: -1
-              zonefile-load: difference-no-serial
-              journal-content: all
-
-          zone:
-            - domain: lan.nixos.test
-              file: lan.nixos.test.zone
-              acl: [dhcp_ddns]
-        '';
+        settings = {
+          server.listen = [
+            "0.0.0.0@53"
+          ];
+
+          log.syslog.any = "info";
+
+          acl.dhcp_ddns = {
+            address = "10.0.0.1";
+            action = "update";
+          };
+
+          template.default = {
+            storage = zonesDir;
+            zonefile-sync = "-1";
+            zonefile-load = "difference-no-serial";
+            journal-content = "all";
+          };
+
+          zone."lan.nixos.test" = {
+            file = "lan.nixos.test.zone";
+            acl = [
+              "dhcp_ddns"
+            ];
+          };
+        };
       };
 
     };