summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorArseniy Seroka <jagajaga@users.noreply.github.com>2016-06-06 22:22:49 +0300
committerArseniy Seroka <jagajaga@users.noreply.github.com>2016-06-06 22:22:49 +0300
commitc9f8cc4bf44988ce537fd3f5842c4f2ef99cad1d (patch)
tree63aaab42c3bb2a45329e4456e788f3204e9cd38e /nixos
parent345d0a3ea6c51fc117e9dea18d49a0346de36fc4 (diff)
parent64328ca4757beb50016774288f2219290587bfea (diff)
downloadnixlib-c9f8cc4bf44988ce537fd3f5842c4f2ef99cad1d.tar
nixlib-c9f8cc4bf44988ce537fd3f5842c4f2ef99cad1d.tar.gz
nixlib-c9f8cc4bf44988ce537fd3f5842c4f2ef99cad1d.tar.bz2
nixlib-c9f8cc4bf44988ce537fd3f5842c4f2ef99cad1d.tar.lz
nixlib-c9f8cc4bf44988ce537fd3f5842c4f2ef99cad1d.tar.xz
nixlib-c9f8cc4bf44988ce537fd3f5842c4f2ef99cad1d.tar.zst
nixlib-c9f8cc4bf44988ce537fd3f5842c4f2ef99cad1d.zip
Merge pull request #15991 from womfoo/openldap
openldap: fix example for multiple-outputs and formatting
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/databases/openldap.nix12
1 files changed, 7 insertions, 5 deletions
diff --git a/nixos/modules/services/databases/openldap.nix b/nixos/modules/services/databases/openldap.nix
index 9e86559dda04..cbdc676d47bd 100644
--- a/nixos/modules/services/databases/openldap.nix
+++ b/nixos/modules/services/databases/openldap.nix
@@ -52,11 +52,12 @@ in
         description = "
           sldapd.conf configuration
         ";
-        example = ''
-            include ''${pkgs.openldap}/etc/openldap/schema/core.schema
-            include ''${pkgs.openldap}/etc/openldap/schema/cosine.schema
-            include ''${pkgs.openldap}/etc/openldap/schema/inetorgperson.schema
-            include ''${pkgs.openldap}/etc/openldap/schema/nis.schema
+        example = literalExample ''
+            '''
+            include ${pkgs.openldap.out}/etc/openldap/schema/core.schema
+            include ${pkgs.openldap.out}/etc/openldap/schema/cosine.schema
+            include ${pkgs.openldap.out}/etc/openldap/schema/inetorgperson.schema
+            include ${pkgs.openldap.out}/etc/openldap/schema/nis.schema
 
             database bdb 
             suffix dc=example,dc=org 
@@ -64,6 +65,7 @@ in
             # NOTE: change after first start
             rootpw secret
             directory /var/db/openldap
+            '''
           '';
       };
     };