diff --git a/nixos/doc/manual/development.xml b/nixos/doc/manual/development.xml
index 7b4e6df5f878..dbaa2c4213d9 100644
--- a/nixos/doc/manual/development.xml
+++ b/nixos/doc/manual/development.xml
@@ -250,7 +250,7 @@ let
in
{
- imports = [ /etc/nixos/nixos/modules/services/scheduling/cron.nix ];
+ imports = [ /path/to/nixpkgs/nixos/modules/services/scheduling/cron.nix ];
options = {
services.locate = {
@@ -307,10 +307,10 @@ in
-$ nix-build /etc/nixos/nixos -A attr
+$ nix-build /path/to/nixpkgs/nixos -A attr
where attr is an attribute in
-/etc/nixos/nixos/default.nix. Attributes of interest include:
+/path/to/nixpkgs/nixos/default.nix. Attributes of interest include:
@@ -344,7 +344,7 @@ Most parts of NixOS can be built through the config
attribute set. This attribute set allows you to have a view of the merged
option definitions and all its derivations. Important derivations are store
inside the option and can be listed with the
-command nix-instantiate --xml --eval-only /etc/nixos/nixos -A
+command nix-instantiate --xml --eval-only /path/to/nixpkgs/nixos -A
config.system.build
@@ -368,8 +368,8 @@ you have to set NIXOS_CONFIG before
running nix-build to build the ISO.
-$ export NIXOS_CONFIG=/etc/nixos/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix
-$ nix-build /etc/nixos/nixos -A config.system.build.isoImage
+$ export NIXOS_CONFIG=/path/to/nixpkgs/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix
+$ nix-build /path/to/nixpkgs/nixos -A config.system.build.isoImage
@@ -413,8 +413,8 @@ tedious, so here is a quick way to see if the installer works
properly:
-$ export NIXOS_CONFIG=/etc/nixos/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix
-$ nix-build /etc/nixos/nixos -A config.system.build.nixos-install
+$ export NIXOS_CONFIG=/path/to/nixpkgs/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix
+$ nix-build /path/to/nixpkgs/nixos -A config.system.build.nixos-install
$ dd if=/dev/zero of=diskimage seek=2G count=0 bs=1
$ yes | mke2fs -j diskimage
$ mount -o loop diskimage /mnt
@@ -437,8 +437,8 @@ boot correctly is to use QEMU’s and
options:
-$ nix-build /etc/nixos/nixos -A config.system.build.initialRamdisk -o initrd
-$ nix-build /etc/nixos/nixos -A config.system.build.kernel -o kernel
+$ nix-build /path/to/nixpkgs/nixos -A config.system.build.initialRamdisk -o initrd
+$ nix-build /path/to/nixpkgs/nixos -A config.system.build.kernel -o kernel
$ qemu-system-x86_64 -kernel ./kernel/bzImage -initrd ./initrd/initrd -hda /dev/null
diff --git a/nixos/doc/manual/man-nixos-option.xml b/nixos/doc/manual/man-nixos-option.xml
index bd180363e70d..7952847d4db5 100644
--- a/nixos/doc/manual/man-nixos-option.xml
+++ b/nixos/doc/manual/man-nixos-option.xml
@@ -120,10 +120,10 @@ Declared by:
/mnt/data/nix-sources/nixos/modules/services/hardware/udev.nix
Defined by:
- /etc/nixos/nixos/modules/system/boot/kernel.nix
- /etc/nixos/nixos/modules/hardware/network/rt73.nix
- /etc/nixos/nixos/modules/hardware/network/intel-3945abg.nix
- /etc/nixos/nixos/modules/hardware/network/intel-2200bg.nix
+ /path/to/nixpkgs/nixos/modules/system/boot/kernel.nix
+ /path/to/nixpkgs/nixos/modules/hardware/network/rt73.nix
+ /path/to/nixpkgs/nixos/modules/hardware/network/intel-3945abg.nix
+ /path/to/nixpkgs/nixos/modules/hardware/network/intel-2200bg.nix
diff --git a/nixos/doc/manual/man-nixos-rebuild.xml b/nixos/doc/manual/man-nixos-rebuild.xml
index e08153c723d9..afc159dbd5d7 100644
--- a/nixos/doc/manual/man-nixos-rebuild.xml
+++ b/nixos/doc/manual/man-nixos-rebuild.xml
@@ -106,7 +106,7 @@ desired operation. It must be one of the following:
points to the output of the top-level “system” derivation. This
is essentially the same as doing
-$ nix-build /etc/nixos/nixos -A system
+$ nix-build /path/to/nixpkgs/nixos -A system
Note that you do not need to be root to run
nixos-rebuild build.