summary refs log tree commit diff
path: root/nixos/modules/services/network-filesystems/samba.nix
diff options
context:
space:
mode:
authorSilvan Mosberger <contact@infinisil.com>2020-04-03 15:41:53 +0200
committerGitHub <noreply@github.com>2020-04-03 15:41:53 +0200
commiteb0148e90b3e35730dab3c668bf93e4cb5d8e633 (patch)
tree9000274ea9fa87d1bb725c78ac54d36de1315fbf /nixos/modules/services/network-filesystems/samba.nix
parentaa600362ad9e1f290e0d464505795455f30b76a4 (diff)
parent1d0fc9729dd8564dc75b5fd020da6bd61e0346c0 (diff)
downloadnixpkgs-eb0148e90b3e35730dab3c668bf93e4cb5d8e633.tar
nixpkgs-eb0148e90b3e35730dab3c668bf93e4cb5d8e633.tar.gz
nixpkgs-eb0148e90b3e35730dab3c668bf93e4cb5d8e633.tar.bz2
nixpkgs-eb0148e90b3e35730dab3c668bf93e4cb5d8e633.tar.lz
nixpkgs-eb0148e90b3e35730dab3c668bf93e4cb5d8e633.tar.xz
nixpkgs-eb0148e90b3e35730dab3c668bf93e4cb5d8e633.tar.zst
nixpkgs-eb0148e90b3e35730dab3c668bf93e4cb5d8e633.zip
Merge pull request #84074 from Infinisil/fix-literal-option-examples
nixos/treewide: Fix incorrectly rendered examples
Diffstat (limited to 'nixos/modules/services/network-filesystems/samba.nix')
-rw-r--r--nixos/modules/services/network-filesystems/samba.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/nixos/modules/services/network-filesystems/samba.nix b/nixos/modules/services/network-filesystems/samba.nix
index a3c22ce6948..a115590ccaa 100644
--- a/nixos/modules/services/network-filesystems/samba.nix
+++ b/nixos/modules/services/network-filesystems/samba.nix
@@ -189,7 +189,7 @@ in
           See <command>man smb.conf</command> for options.
         '';
         type = types.attrsOf (types.attrsOf types.unspecified);
-        example =
+        example = literalExample ''
           { public =
             { path = "/srv/public";
               "read only" = true;
@@ -197,7 +197,8 @@ in
               "guest ok" = "yes";
               comment = "Public samba share.";
             };
-          };
+          }
+        '';
       };
 
     };