···
services.knot.enable = true;
services.knot.extraArgs = [ "-v" ];
services.knot.keyFiles = [ tsigFile ];
-
services.knot.extraConfig = ''
-
address: 192.168.0.2@53
-
storage: ${knotZonesEnv}
-
# Input-only zone files
-
# https://www.knot-dns.cz/docs/2.8/html/operation.html#example-3
-
# prevents modification of the zonefiles, since the zonefiles are immutable
-
zonefile-load: difference
-
journal-content: changes
-
# move databases below the state directory, because they need to be writable
-
journal-db: /var/lib/knot/journal
-
kasp-db: /var/lib/knot/kasp
-
timer-db: /var/lib/knot/timer
-
- domain: sub.example.com
-
file: sub.example.com.zone
secondary = { lib, ... }: {
···
services.knot.enable = true;
services.knot.keyFiles = [ tsigFile ];
services.knot.extraArgs = [ "-v" ];
-
services.knot.extraConfig = ''
-
address: 192.168.0.1@53
-
# https://www.knot-dns.cz/docs/2.8/html/operation.html#example-2
-
# move databases below the state directory, because they need to be writable
-
journal-db: /var/lib/knot/journal
-
kasp-db: /var/lib/knot/kasp
-
timer-db: /var/lib/knot/timer
-
- domain: sub.example.com
-
file: sub.example.com.zone
client = { lib, nodes, ... }: {