summary refs log tree commit diff
path: root/nixos/modules/services/networking
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-10-29 17:29:37 +0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-10-29 17:39:31 +0100
commit0695b68c8c3411fdb1ab1bad3b94b19d7ed33f25 (patch)
treefe5af7d034bd295d8e65b0b2402c4a867f6e99a1 /nixos/modules/services/networking
parentbfaa6b73527340ffabe24b2073909247174033cb (diff)
downloadnixlib-0695b68c8c3411fdb1ab1bad3b94b19d7ed33f25.tar
nixlib-0695b68c8c3411fdb1ab1bad3b94b19d7ed33f25.tar.gz
nixlib-0695b68c8c3411fdb1ab1bad3b94b19d7ed33f25.tar.bz2
nixlib-0695b68c8c3411fdb1ab1bad3b94b19d7ed33f25.tar.lz
nixlib-0695b68c8c3411fdb1ab1bad3b94b19d7ed33f25.tar.xz
nixlib-0695b68c8c3411fdb1ab1bad3b94b19d7ed33f25.tar.zst
nixlib-0695b68c8c3411fdb1ab1bad3b94b19d7ed33f25.zip
Manual: Render multi-line strings properly
Diffstat (limited to 'nixos/modules/services/networking')
-rw-r--r--nixos/modules/services/networking/dhcpd.nix18
1 files changed, 9 insertions, 9 deletions
diff --git a/nixos/modules/services/networking/dhcpd.nix b/nixos/modules/services/networking/dhcpd.nix
index 43e0843cb971..5b2058e4e129 100644
--- a/nixos/modules/services/networking/dhcpd.nix
+++ b/nixos/modules/services/networking/dhcpd.nix
@@ -15,7 +15,7 @@ let
       authoritative;
       ddns-update-style ad-hoc;
       log-facility local1; # see dhcpd.nix
-      
+
       ${cfg.extraConfig}
 
       ${pkgs.lib.concatMapStrings
@@ -30,13 +30,13 @@ let
     '';
 
 in
-  
+
 {
 
   ###### interface
 
   options = {
-  
+
     services.dhcpd = {
 
       enable = mkOption {
@@ -48,16 +48,16 @@ in
 
       extraConfig = mkOption {
         default = "";
-        example = "
+        example = ''
           option subnet-mask 255.255.255.0;
           option broadcast-address 192.168.1.255;
           option routers 192.168.1.5;
           option domain-name-servers 130.161.158.4, 130.161.33.17, 130.161.180.1;
-          option domain-name \"example.org\";
+          option domain-name "example.org";
           subnet 192.168.1.0 netmask 255.255.255.0 {
             range 192.168.1.100 192.168.1.200;
           }
-        ";
+        '';
         description = "
           Extra text to be appended to the DHCP server configuration
           file.  Currently, you almost certainly need to specify
@@ -100,9 +100,9 @@ in
       };
 
     };
-    
+
   };
-  
+
 
   ###### implementation
 
@@ -127,5 +127,5 @@ in
       };
 
   };
-  
+
 }