summary refs log tree commit diff
path: root/nixos/modules/config
diff options
context:
space:
mode:
authorDomen Kožar <domen@dev.si>2016-02-27 10:08:37 +0000
committerDomen Kožar <domen@dev.si>2016-02-27 10:08:37 +0000
commit04422bb3ca8f1c09ac45817f6926199f9bfbf84f (patch)
tree6fc31a73fb4595e5f348657cf2f36de90ce606ae /nixos/modules/config
parent13afef0d8ec6058e8d42f3ea8cb1f0932bef0c2f (diff)
parent392ca77d4c0c5e05ad23378de370ea964c29848f (diff)
downloadnixlib-04422bb3ca8f1c09ac45817f6926199f9bfbf84f.tar
nixlib-04422bb3ca8f1c09ac45817f6926199f9bfbf84f.tar.gz
nixlib-04422bb3ca8f1c09ac45817f6926199f9bfbf84f.tar.bz2
nixlib-04422bb3ca8f1c09ac45817f6926199f9bfbf84f.tar.lz
nixlib-04422bb3ca8f1c09ac45817f6926199f9bfbf84f.tar.xz
nixlib-04422bb3ca8f1c09ac45817f6926199f9bfbf84f.tar.zst
nixlib-04422bb3ca8f1c09ac45817f6926199f9bfbf84f.zip
Merge pull request #8630 from lihop/nixos/fix-formatting
nixos: fix formatting of option examples
Diffstat (limited to 'nixos/modules/config')
-rw-r--r--nixos/modules/config/vpnc.nix20
1 files changed, 10 insertions, 10 deletions
diff --git a/nixos/modules/config/vpnc.nix b/nixos/modules/config/vpnc.nix
index 68d755232ebe..c7ac1b3530e1 100644
--- a/nixos/modules/config/vpnc.nix
+++ b/nixos/modules/config/vpnc.nix
@@ -17,16 +17,16 @@ in
       services = mkOption {
        type = types.attrsOf types.str;
        default = {};
-       example = {
-         test = 
-          ''
-           IPSec gateway 192.168.1.1 
-           IPSec ID someID
-           IPSec secret secretKey
-           Xauth username name
-           Xauth password pass
-          '';
-       };
+       example = literalExample ''
+         { test = '''
+             IPSec gateway 192.168.1.1
+             IPSec ID someID
+             IPSec secret secretKey
+             Xauth username name
+             Xauth password pass
+           ''';
+         }
+       '';
        description = 
          ''
            The names of cisco VPNs and their associated definitions