summary refs log tree commit diff
path: root/nixos/modules/services/x11/display-managers/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/modules/services/x11/display-managers/default.nix')
-rw-r--r--nixos/modules/services/x11/display-managers/default.nix21
1 files changed, 11 insertions, 10 deletions
diff --git a/nixos/modules/services/x11/display-managers/default.nix b/nixos/modules/services/x11/display-managers/default.nix
index 65b634f9482..0910708002b 100644
--- a/nixos/modules/services/x11/display-managers/default.nix
+++ b/nixos/modules/services/x11/display-managers/default.nix
@@ -204,16 +204,17 @@ in
 
       session = mkOption {
         default = [];
-        example = [
-          {
-            manage = "desktop";
-            name = "xterm";
-            start = "
-              ${pkgs.xterm}/bin/xterm -ls &
-              waitPID=$!
-            ";
-          }
-        ];
+        example = literalExample
+          ''
+            [ { manage = "desktop";
+                name = "xterm";
+                start = '''
+                  ''${pkgs.xterm}/bin/xterm -ls &
+                  waitPID=$!
+                ''';
+              }
+            ]
+          '';
         description = ''
           List of sessions supported with the command used to start each
           session.  Each session script can set the