@@ -54,7 +54,7 @@
5454 changes. For example:
5555
5656<screen>
57−$ mkfs.ext4 -L nixos /dev/sda1</screen>
57+# mkfs.ext4 -L nixos /dev/sda1</screen>
5858
5959 </para></listitem>
6060
@@ -66,10 +66,10 @@ $ mkfs.ext4 -L nixos /dev/sda1</screen>
6666 <listitem><para>For creating LVM volumes, the LVM commands, e.g.,
6767
6868<screen>
69−$ pvcreate /dev/sda1 /dev/sdb1
70−$ vgcreate MyVolGroup /dev/sda1 /dev/sdb1
71−$ lvcreate --size 2G --name bigdisk MyVolGroup
72−$ lvcreate --size 1G --name smalldisk MyVolGroup</screen>
69+# pvcreate /dev/sda1 /dev/sdb1
70+# vgcreate MyVolGroup /dev/sda1 /dev/sdb1
71+# lvcreate --size 2G --name bigdisk MyVolGroup
72+# lvcreate --size 1G --name smalldisk MyVolGroup</screen>
7373
7474 </para></listitem>
7575
@@ -84,7 +84,7 @@ $ lvcreate --size 1G --name smalldisk MyVolGroup</screen>
8484 be installed on <filename>/mnt</filename>, e.g.
8585
8686<screen>
87−$ mount /dev/disk/by-label/nixos /mnt
87+# mount /dev/disk/by-label/nixos /mnt
8888</screen>
8989
9090 </para></listitem>
@@ -113,14 +113,14 @@ $ mount /dev/disk/by-label/nixos /mnt
113113 generate an initial configuration file for you:
114114
115115<screen>
116−$ nixos-generate-config --root /mnt</screen>
116+# nixos-generate-config --root /mnt</screen>
117117
118118 You should then edit
119119 <filename>/mnt/etc/nixos/configuration.nix</filename> to suit your
120120 needs:
121121
122122<screen>
123−$ nano /mnt/etc/nixos/configuration.nix
123+# nano /mnt/etc/nixos/configuration.nix
124124</screen>
125125
126126 If you’re using the graphical ISO image, other editors may be
@@ -162,7 +162,7 @@ $ nano /mnt/etc/nixos/configuration.nix
162162 <listitem><para>Do the installation:
163163
164164<screen>
165−$ nixos-install</screen>
165+# nixos-install</screen>
166166
167167 Cross fingers. If this fails due to a temporary problem (such as
168168 a network issue while downloading binaries from the NixOS binary
@@ -186,7 +186,7 @@ Retype new UNIX password: ***
186186 <listitem><para>If everything went well:
187187
188188<screen>
189−$ reboot</screen>
189+# reboot</screen>
190190
191191 </para></listitem>
192192
@@ -235,15 +235,15 @@ drive (here <filename>/dev/sda</filename>). <xref linkend="ex-config"
235235
236236<example xml:id='ex-install-sequence'><title>Commands for Installing NixOS on <filename>/dev/sda</filename></title>
237237<screen>
238−$ fdisk /dev/sda # <lineannotation>(or whatever device you want to install on)</lineannotation>
239−$ mkfs.ext4 -L nixos /dev/sda1
240−$ mkswap -L swap /dev/sda2
241−$ swapon /dev/sda2
242−$ mount /dev/disk/by-label/nixos /mnt
243−$ nixos-generate-config --root /mnt
244−$ nano /mnt/etc/nixos/configuration.nix
245−$ nixos-install
246−$ reboot</screen>
238+# fdisk /dev/sda # <lineannotation>(or whatever device you want to install on)</lineannotation>
239+# mkfs.ext4 -L nixos /dev/sda1
240+# mkswap -L swap /dev/sda2
241+# swapon /dev/sda2
242+# mount /dev/disk/by-label/nixos /mnt
243+# nixos-generate-config --root /mnt
244+# nano /mnt/etc/nixos/configuration.nix
245+# nixos-install
246+# reboot</screen>
247247</example>
248248
249249<example xml:id='ex-config'><title>NixOS Configuration</title>