summaryrefslogtreecommitdiff
path: root/sys/ns/rr.nix
diff options
context:
space:
mode:
Diffstat (limited to 'sys/ns/rr.nix')
-rw-r--r--sys/ns/rr.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/ns/rr.nix b/sys/ns/rr.nix
index 3ccbd55..11e1aa6 100644
--- a/sys/ns/rr.nix
+++ b/sys/ns/rr.nix
@@ -54,6 +54,11 @@ in
default = 3600;
};
+ nsdConfig = mkOption {
+ type = attrsOf unspecified;
+ default = { };
+ };
+
content = mkOption {
type = lines;
readOnly = true;
@@ -202,6 +207,8 @@ in
};
config = {
+ nsdConfig.data = config.content;
+
content =
let
rrLine = rr: concatMapStringsSep " " toString ([ rr.name rr.ttl rr.class rr.type ] ++ rr.data);