1<chapter xmlns="http://docbook.org/ns/docbook"
2 xmlns:xlink="http://www.w3.org/1999/xlink"
3 xmlns:xi="http://www.w3.org/2001/XInclude"
4 version="5.0"
5 xml:id="sec-building-cd">
6 <title>Building Your Own NixOS CD</title>
7 <para>
8 Building a NixOS CD is as easy as configuring your own computer. The idea is
9 to use another module which will replace your
10 <filename>configuration.nix</filename> to configure the system that would be
11 installed on the CD.
12 </para>
13 <para>
14 Default CD/DVD configurations are available inside
15 <filename>nixos/modules/installer/cd-dvd</filename>.
16<screen>
17$ git clone https://github.com/NixOS/nixpkgs.git
18$ cd nixpkgs/nixos
19$ nix-build -A config.system.build.isoImage -I nixos-config=modules/installer/cd-dvd/installation-cd-minimal.nix default.nix</screen>
20 </para>
21 <para>
22 Before burning your CD/DVD, you can check the content of the image by
23 mounting anywhere like suggested by the following command:
24<screen>
25# mount -o loop -t iso9660 ./result/iso/cd.iso /mnt/iso</screen>
26 </para>
27</chapter>