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
621
zones = mkOption {
622
622
type = types.attrsOf zoneOptions;
623
623
default = {};
624
624
-
example = {
625
625
-
"serverGroup1" = {
626
626
-
provideXFR = [ "10.1.2.3 NOKEY" ];
627
627
-
children = {
628
628
-
"example.com." = {
629
629
-
data = ''
630
630
-
$ORIGIN example.com.
631
631
-
$TTL 86400
632
632
-
@ IN SOA a.ns.example.com. admin.example.com. (
633
633
-
...
634
634
-
'';
635
635
-
};
636
636
-
"example.org." = {
637
637
-
data = ''
638
638
-
$ORIGIN example.org.
639
639
-
$TTL 86400
640
640
-
@ IN SOA a.ns.example.com. admin.example.com. (
641
641
-
...
642
642
-
'';
624
624
+
example = literalExample ''
625
625
+
{ "serverGroup1" = {
626
626
+
provideXFR = [ "10.1.2.3 NOKEY" ];
627
627
+
children = {
628
628
+
"example.com." = {
629
629
+
data = '''
630
630
+
$ORIGIN example.com.
631
631
+
$TTL 86400
632
632
+
@ IN SOA a.ns.example.com. admin.example.com. (
633
633
+
...
634
634
+
''';
635
635
+
};
636
636
+
"example.org." = {
637
637
+
data = '''
638
638
+
$ORIGIN example.org.
639
639
+
$TTL 86400
640
640
+
@ IN SOA a.ns.example.com. admin.example.com. (
641
641
+
...
642
642
+
''';
643
643
+
};
643
644
};
644
645
};
645
645
-
};
646
646
647
647
-
"example.net." = {
648
648
-
provideXFR = [ "10.3.2.1 NOKEY" ];
649
649
-
data = ''...'';
650
650
-
};
651
651
-
};
647
647
+
"example.net." = {
648
648
+
provideXFR = [ "10.3.2.1 NOKEY" ];
649
649
+
data = '''
650
650
+
...
651
651
+
''';
652
652
+
};
653
653
+
}
654
654
+
'';
652
655
description = ''
653
656
Define your zones here. Zones can cascade other zones and therefore
654
657
inherit settings from parent zones. Look at the definition of