lol

nsd service: fix formatting of example

+28 -25
+28 -25
nixos/modules/services/networking/nsd.nix
··· 621 621 zones = mkOption { 622 622 type = types.attrsOf zoneOptions; 623 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 - ''; 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 + }; 643 644 }; 644 645 }; 645 - }; 646 646 647 - "example.net." = { 648 - provideXFR = [ "10.3.2.1 NOKEY" ]; 649 - data = ''...''; 650 - }; 651 - }; 647 + "example.net." = { 648 + provideXFR = [ "10.3.2.1 NOKEY" ]; 649 + data = ''' 650 + ... 651 + '''; 652 + }; 653 + } 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