Skip to content

Commit f82bbc9

Browse files
emmanuelrosagrahamc
authored andcommittedJun 3, 2017
doc: clarify building-nixos CD/DVD instructions
This change updates the instructions for building a NixOS ISO so that it's clear how to do it. Previously, the instructions stated to set NIXOS_CONFIG prior to running `nix-build`, yet the example provided by-passed NIXOS_CONFIG anyway. But the *really* important missing piece is the need for nixos/default.nix. See #21840. This change removes the NIXOS_CONFIG verbiage, and adds steps to clone nixpkgs and (most importantly) cd'ing into nixpkgs/nixos. That way, the reader may think: *Oh, so I need a default.nix and a configuration.nix. Ahhh, OK.* I purposely added the redundant default.nix argument. (cherry picked from commit 4bee34d)
1 parent 788ce6e commit f82bbc9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

Diff for: ‎nixos/doc/manual/development/building-nixos.xml

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ your <filename>configuration.nix</filename> to configure the system that
1212
would be installed on the CD.</para>
1313

1414
<para>Default CD/DVD configurations are available
15-
inside <filename>nixos/modules/installer/cd-dvd</filename>. To build them
16-
you have to set <envar>NIXOS_CONFIG</envar> before
17-
running <command>nix-build</command> to build the ISO.
15+
inside <filename>nixos/modules/installer/cd-dvd</filename>.
1816

1917
<screen>
20-
$ nix-build -A config.system.build.isoImage -I nixos-config=modules/installer/cd-dvd/installation-cd-minimal.nix</screen>
18+
$ git clone https://github.com/NixOS/nixpkgs.git
19+
$ cd nixpkgs/nixos
20+
$ nix-build -A config.system.build.isoImage -I nixos-config=modules/installer/cd-dvd/installation-cd-minimal.nix default.nix</screen>
2121

2222
</para>
2323

0 commit comments

Comments
 (0)
Please sign in to comment.