diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2020-09-23 00:38:47 +0200 |
---|---|---|
committer | Jan Tojnar <jtojnar@gmail.com> | 2020-09-23 01:25:25 +0200 |
commit | e6ce041caef09405283081a8b5c5412153eccc85 (patch) | |
tree | 048f15ef23b9a4ab1d7741cfb64f7c355753c082 /nixos/doc/manual/administration/rollback.xml | |
parent | e1af37634b387e18361f15b2db1c7f7f93d37ebc (diff) | |
download | nixpkgs-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/doc/manual/administration/rollback.xml')
-rw-r--r-- | nixos/doc/manual/administration/rollback.xml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/doc/manual/administration/rollback.xml b/nixos/doc/manual/administration/rollback.xml index fb87810ba46..80d79e1a53f 100644 --- a/nixos/doc/manual/administration/rollback.xml +++ b/nixos/doc/manual/administration/rollback.xml @@ -20,16 +20,16 @@ has booted, you can make the selected configuration the default for subsequent boots: <screen> -# /run/current-system/bin/switch-to-configuration boot</screen> +<prompt># </prompt>/run/current-system/bin/switch-to-configuration boot</screen> </para> <para> Second, you can switch to the previous configuration in a running system: <screen> -# nixos-rebuild switch --rollback</screen> +<prompt># </prompt>nixos-rebuild switch --rollback</screen> This is equivalent to running: <screen> -# /nix/var/nix/profiles/system-<replaceable>N</replaceable>-link/bin/switch-to-configuration switch</screen> +<prompt># </prompt>/nix/var/nix/profiles/system-<replaceable>N</replaceable>-link/bin/switch-to-configuration switch</screen> where <replaceable>N</replaceable> is the number of the NixOS system configuration. To get a list of the available configurations, do: <screen> |