about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorLeroy Hopson <git@leroy.geek.nz>2015-07-04 18:52:50 +1200
committerLeroy Hopson <git@leroy.geek.nz>2016-02-27 22:25:40 +1300
commitc1e674c4ca28a4f8871a57efa0dde36852e51cbb (patch)
treedef87239f80bc5c3fb121283eb01b730e4b08984 /nixos
parent25fd9e31a2bbbc2f907e1cae466fec347fce0f34 (diff)
xserver service: fix formatting of example
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/x11/xserver.nix17
1 files changed, 10 insertions, 7 deletions
diff --git a/nixos/modules/services/x11/xserver.nix b/nixos/modules/services/x11/xserver.nix
index 653c97d7e6fa4..cfe5e7f960c7f 100644
--- a/nixos/modules/services/x11/xserver.nix
+++ b/nixos/modules/services/x11/xserver.nix
@@ -156,13 +156,16 @@ in
       inputClassSections = mkOption {
         type = types.listOf types.lines;
         default = [];
-        example = [ ''
-           Identifier      "Trackpoint Wheel Emulation"
-           MatchProduct    "ThinkPad USB Keyboard with TrackPoint"
-           Option          "EmulateWheel"          "true
-           Option          "EmulateWheelButton"    "2"
-           Option          "Emulate3Buttons"       "false"
-          '' ];
+        example = literalExample ''
+          [ '''
+              Identifier      "Trackpoint Wheel Emulation"
+              MatchProduct    "ThinkPad USB Keyboard with TrackPoint"
+              Option          "EmulateWheel"          "true
+              Option          "EmulateWheelButton"    "2"
+              Option          "Emulate3Buttons"       "false"
+            '''
+          ]
+        '';
         description = "Content of additional InputClass sections of the X server configuration file.";
       };