summary refs log tree commit diff
path: root/nixos/modules/system/activation/top-level.nix
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2020-09-23 00:38:47 +0200
committerJan Tojnar <jtojnar@gmail.com>2020-09-23 01:25:25 +0200
commite6ce041caef09405283081a8b5c5412153eccc85 (patch)
tree048f15ef23b9a4ab1d7741cfb64f7c355753c082 /nixos/modules/system/activation/top-level.nix
parente1af37634b387e18361f15b2db1c7f7f93d37ebc (diff)
downloadnixpkgs-e6ce041caef09405283081a8b5c5412153eccc85.tar
nixpkgs-e6ce041caef09405283081a8b5c5412153eccc85.tar.gz
nixpkgs-e6ce041caef09405283081a8b5c5412153eccc85.tar.bz2
nixpkgs-e6ce041caef09405283081a8b5c5412153eccc85.tar.lz
nixpkgs-e6ce041caef09405283081a8b5c5412153eccc85.tar.xz
nixpkgs-e6ce041caef09405283081a8b5c5412153eccc85.tar.zst
nixpkgs-e6ce041caef09405283081a8b5c5412153eccc85.zip
nixos/doc: Improve code listings
By adding prompts and replaceables and removing unnecessary indentation.
Diffstat (limited to 'nixos/modules/system/activation/top-level.nix')
-rw-r--r--nixos/modules/system/activation/top-level.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/modules/system/activation/top-level.nix b/nixos/modules/system/activation/top-level.nix
index fb8644dd13a..2724d9f9cb6 100644
--- a/nixos/modules/system/activation/top-level.nix
+++ b/nixos/modules/system/activation/top-level.nix
@@ -159,9 +159,9 @@ in
         To switch to a specialised configuration
         (e.g. <literal>fewJobsManyCores</literal>) at runtime, run:
 
-        <programlisting>
-        # sudo /run/current-system/specialisation/fewJobsManyCores/bin/switch-to-configuration test
-        </programlisting>
+        <screen>
+        <prompt># </prompt>sudo /run/current-system/specialisation/fewJobsManyCores/bin/switch-to-configuration test
+        </screen>
       '';
       type = types.attrsOf (types.submodule (
         { ... }: {