tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
nsd service: fix formatting of example
Leroy Hopson
10 years ago
f6f892e2
24d5d288
+28
-25
1 changed file
expand all
collapse all
unified
split
nixos
modules
services
networking
nsd.nix
+28
-25
nixos/modules/services/networking/nsd.nix
···
621
zones = mkOption {
622
type = types.attrsOf zoneOptions;
623
default = {};
624
-
example = {
625
-
"serverGroup1" = {
626
-
provideXFR = [ "10.1.2.3 NOKEY" ];
627
-
children = {
628
-
"example.com." = {
629
-
data = ''
630
-
$ORIGIN example.com.
631
-
$TTL 86400
632
-
@ IN SOA a.ns.example.com. admin.example.com. (
633
-
...
634
-
'';
635
-
};
636
-
"example.org." = {
637
-
data = ''
638
-
$ORIGIN example.org.
639
-
$TTL 86400
640
-
@ IN SOA a.ns.example.com. admin.example.com. (
641
-
...
642
-
'';
0
643
};
644
};
645
-
};
646
647
-
"example.net." = {
648
-
provideXFR = [ "10.3.2.1 NOKEY" ];
649
-
data = ''...'';
650
-
};
651
-
};
0
0
0
652
description = ''
653
Define your zones here. Zones can cascade other zones and therefore
654
inherit settings from parent zones. Look at the definition of
···
621
zones = mkOption {
622
type = types.attrsOf zoneOptions;
623
default = {};
624
+
example = literalExample ''
625
+
{ "serverGroup1" = {
626
+
provideXFR = [ "10.1.2.3 NOKEY" ];
627
+
children = {
628
+
"example.com." = {
629
+
data = '''
630
+
$ORIGIN example.com.
631
+
$TTL 86400
632
+
@ IN SOA a.ns.example.com. admin.example.com. (
633
+
...
634
+
''';
635
+
};
636
+
"example.org." = {
637
+
data = '''
638
+
$ORIGIN example.org.
639
+
$TTL 86400
640
+
@ IN SOA a.ns.example.com. admin.example.com. (
641
+
...
642
+
''';
643
+
};
644
};
645
};
0
646
647
+
"example.net." = {
648
+
provideXFR = [ "10.3.2.1 NOKEY" ];
649
+
data = '''
650
+
...
651
+
''';
652
+
};
653
+
}
654
+
'';
655
description = ''
656
Define your zones here. Zones can cascade other zones and therefore
657
inherit settings from parent zones. Look at the definition of